Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
all groups > vb.net > february 2004 > threads for friday february 6

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

Verify if Form is already open
Posted by nTn at 2/6/2004 10:12:06 PM
Hi! I open a new form in my Mdi. But if I click in button again to open this form, the program create another form. How I can check if the form is already open? I'm using that: Dim frmUsuarios As New usuarios("Usuarios", Me)frmUsuarios.Show() ...more >>


loadpicture (form1.file1.filename)
Posted by cullens_aust NO[at]SPAM yahoo.com.au at 2/6/2004 9:37:00 PM
Can anyone help me with this code for vb I am trying to access different pictures at different times Dim pic As String Static x As Integer Picture1.Visible = True 'If x = File1.ListCount Then x = 0 'x = File1.ListIndex pic = File1.filename Picture1.Picture = LoadPicture(Form1.File1.fi...more >>

VB.NET and pointers
Posted by Lance at 2/6/2004 9:31:06 PM
VB.NET (v2003) does not support pointers, right? Assuming that this is true, are there any plans to support pointers in the future? Forgive my ignorance, but if C# supports pointers and C# and VB.NET get compiled into the same code, then I don't understand why VB.NET can't support pointers Thank...more >>

wait a few seconds
Posted by Snuyt at 2/6/2004 8:03:18 PM
Hello, I want the program to wait a few seconds between executing code. It should look something like this: public sub xx() ...code... wait(2) 'wait 2 seconds ...code... end sub public sub wait(byval secs as integer) ...???... end sub Does anyone know how to program ...more >>

override onpain on a panel control
Posted by Brian Henry at 2/6/2004 7:53:09 PM
I want to rewrite the panel control to include some things, but need to call its base onpaint event... when i try to do mybase.onpaint in the code below in the overriden sub it wont let me, whys that? thanks Public Class UserControl1 Inherits System.Windows.Forms.Panel #Region " Windo...more >>

.NET controls ..
Posted by Andry at 2/6/2004 6:10:08 PM
I am working on a few .net forms ie html controls. I want to change their template without changing the code. How can this be done? ...more >>

Nested properties
Posted by James Wong at 2/6/2004 5:21:47 PM
Hi! everybody, I'm developing a custom control with nested properties. From MS article "Make Your Components Really RAD with Visual Studio .NET Property Browser" (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/h tml/vsnetpropbrow.asp), it described how to make it a...more >>

Monitor Printer Port
Posted by Seth at 2/6/2004 5:01:58 PM
Does anyone know how I can capture the data from a print stream? TIA! Seth ...more >>



how best to edit data in a data grid
Posted by T.Jackson at 2/6/2004 4:34:20 PM
Hi guys, I want to display the data of a table in a datagrid in one form, & enable the user to edit the details of a particular record in another form. I want the following features, 1. display the data in a grid in one form 2. enable editing the data for a row in another form 3. checking...more >>

Set back color of a form's title bar in .NET?
Posted by Kevin L at 2/6/2004 4:17:28 PM
I want to change the color of a form's title bar depending on whether a particular action is being performed. Is there a way I can do this in .NET? ...more >>

Right Click to shown pop up menu
Posted by A-PK at 2/6/2004 3:55:15 PM
How to write a right click pop up menu in VB.net like Windows could someone guide me and give some hints on that. thank you very much ...more >>

IShellFolder and IEnumIDList hell!
Posted by Robin Tucker at 2/6/2004 3:52:03 PM
I can't get this damned IEnumIDList thing to work correctly. I've got the desktop folder as an IShellObject (which I've verified by being able to get the display name etc. from it). I can also get a pointer to the IEnumIDList object via. GetIEnum. It even allows me to execute the "Fetch" metho...more >>

Dataadapter
Posted by Andrew Cooper at 2/6/2004 3:46:36 PM
Greetings, I'm running into a little problem with a Dataadapter object. I'm using it to fill a Datatable but when I later try to Update the database using the Dataadapter.Update method, I get an error saying that the INSERT INTO statement is not correct. When I look at the CommandText of the...more >>

URGENT, tricky question (BitBlt experts especially)
Posted by VB Programmer at 2/6/2004 2:57:23 PM
I am using the BitBlt operation to capture various controls into jpegs. It's almost like a screen capture, but of just the control. (This is a VB.NET application.) Because of BitBlt limitations I know that the application has to always be on top. The problem: I am running this application ...more >>

NumLock, CapsLock, ScrollLock
Posted by nTn at 2/6/2004 2:51:55 PM
I'd like show in my status bar, status of NumLock, CapsLock and ScrollLock. How I do? Thx ...more >>

Icons
Posted by Tom McLaughlin at 2/6/2004 2:40:16 PM
Is there a way to obtain the icons that are used in microsoft word toolBar's. I would like to incorporate them into an ImageList control. ...more >>

Iterating through the constants in a structure
Posted by Bob Day at 2/6/2004 2:04:33 PM
Using VS 2003, VB.NET, MSDE Is there a way to itterate through the items in a structure? Consider the structure below, which holds the name of wave files. I would like to itterate through them to confirm the wave files actually exist on the hard disk. I don't see any collection or way to do...more >>

DataAdapter Update
Posted by Ruslan Shlain at 2/6/2004 1:44:05 PM
Is there a way to tell DataAdapter to continue updating if it encounters error. So, in other words once it starts to update records in the database and it fails on one of them, then it would continue updating rest of the remaining records in the dataset.? Any suggestions or samples would be ve...more >>

OpenFileDialog
Posted by Chuck Edgeworth at 2/6/2004 1:41:15 PM
I'm trying to be able to select a combination of files and folders. When I try to use the OpenFileDialog it will allow me to select them but when I press the Open button it only informs me of the files I chose not the folders as well? Am I missing something? I know Microsoft can determine the...more >>

Policy level User cannot be saved
Posted by bjhill2112 at 2/6/2004 1:33:09 PM
Does anybody know what causes this? It is a sporadic error that randomly shows up while debugging one of my ASP.NET projects. Quote: "A first chance exception of type 'System.Security.Policy.PolicyException' occurred in mscorlib.dll Additional information: Policy level User cannot be s...more >>

ListView columns in detail mode
Posted by Rob Richardson at 2/6/2004 1:16:30 PM
Greetings! I am attempting to display data in tabular form using a ListView control in detail mode. This is for a program I originally wrote in VB6. In VB6, I would add an item to the ListView, and the item would automatically have the correct number of subitems, which I could access using a...more >>

Creating "Wrapper" for Access Application
Posted by David A Barajas at 2/6/2004 12:41:34 PM
Is is possible to launch an Access Application within another app, creating a Parent/Child relationship between the App/Access? I'm trying to create a system where I can distribute the Access app without having to worry about Access runtime issues at the client site. I'm already working on p...more >>

How can I make Dim sString As String visible globally?
Posted by Trint Smith at 2/6/2004 12:31:15 PM
I have several strings in my project that I want all programs in the project to be able to see...How do I do that? Thanks, Trint .Net programmer trintsmith@hotmail.com *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

How to get max value from a dataset column?
Posted by Steve Farmer at 2/6/2004 12:31:15 PM
Hi everybody, I have a column in a DataSet (ItemNo) where I need to find out the highest number, so I can add 1 to it when a new record is written to the database. What is the best way to that please? Steve *** Sent via Developersdex http://www.developersdex.com *** Don't just partic...more >>

Best way to get single value from database
Posted by Tom at 2/6/2004 12:29:40 PM
Here is what I do to get a single value from my database (using Oracle ODP as example): Dim ID as Object Dim cmdTest as New OracleCommand("select ID from MyTable where key = " & KeySearch") ID=cmdText.ExecuteNonQuery If ID is Nothing then 'Not found - do not found processing here Else ...more >>

inherited security strategy needed
Posted by Craig Buchanan at 2/6/2004 12:26:19 PM
I'm building an application that uses a folder and object heirarchy metaphor. I would like to be able to set access rights generically (at the folder) or specifically (for the object) for groups or individuals. I would also like to be able to 'inherit' rights from parent folders to child folde...more >>

Downlaod
Posted by Mark at 2/6/2004 11:28:52 AM
Hello. Can anybody write me, how can I make good download manager, with resume? Is on Internet any source code? Thanks. ...more >>

CE.net
Posted by Daryl Davis at 2/6/2004 11:13:39 AM
Is there a forum for SmartDevice programming on .net?? Daryl Davis ...more >>

conditional compile and #IF CONFIG
Posted by Trapulo at 2/6/2004 10:08:27 AM
I'm using conditonal compile with statement #IF CONFIG This works if I use #IF CONFIG = "Debug" or #IF CONFIG= "Release" But if I define an other compilation profile, eg. "BestRelease", and I use #IF CONFIG = "BestRelease", compiler doesn't recognize the true condition and doesn't compile stat...more >>

Event log property doesn't retain setting changes..
Posted by KC at 2/6/2004 9:49:28 AM
Hi, I created a new event log source and log and user WriteEntry to enter the log as follows: ' Create the source, if it does not already exist. If Not EventLog.SourceExists("MySource") Then EventLog.CreateEventSource("MySource", "MyNewLog") End If ' Cre...more >>

How do I create a login and keep the user logged in?
Posted by Trint Smith at 2/6/2004 9:08:10 AM
Ok, I have the data in sql server for the user and they want to login...like - keep a reference of them after they do: userid password Thanks, Trint ..Net programmer trintsmith@hotmail.com *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...ge...more >>

website/webclient
Posted by masoodadnan NO[at]SPAM hotmail.com at 2/6/2004 8:52:32 AM
I have a website, and I need to programmatically find out all the pages that the first page referes to, and then goto those pages and retrive some information. The problem is that the links could be relative or absolute. I know how to use webclient. I just don't know how to parse out the rela...more >>

Code Security
Posted by CJ Taylor at 2/6/2004 8:45:17 AM
Alright, Sorry to bother everyone but was looking for some guidance on how to accomplish this task. I want to put an executable on a shared drive on our intranet and just use shortcuts to reference it. Now, I can't do this without trusting the assembly. However, I dont' want to go to ever...more >>

Another VB Hidden Feature?
Posted by CJ Taylor at 2/6/2004 8:19:48 AM
Whats up everyone, I was playing around with some C# last night and noticed something interesting. I built two programs, one VB and one C#. Each had 1 form with nothing on it. However, the C# form has this void sub main() { Application.Run (Form1) } So does VB.NET automatically...more >>

Allow only upper case letters in text box
Posted by Richard Keller at 2/6/2004 8:15:34 AM
How can I only allow user to enter upper case letters into a text box, and if he enters a lower case letter, change it to upper case. in vb6 I would use the keypress event and change the key to upper case, but in .net the key is read only....more >>

sql server role
Posted by Eric Fleet at 2/6/2004 7:31:09 AM
I'm hoping someone can poing me to a good resource on this topic Inside of my vb app, a user logs into a sql database. I'd like to find our which roles he is a member. I would use this to determine which functions to disable 1) Is this a proper way to handle security (the roles in SQL would alre...more >>

Set my own priority
Posted by Tom Scales at 2/6/2004 7:13:00 AM
I've got a long running, intensive application that I am writing. I'd like to set my own Priority. Most of the time I want to lower it so I don't eat up the entire processor. I know how to do it with a thread, but how about to myself (so to speak)? Thanks, Tom ...more >>

ArrayList
Posted by Will at 2/6/2004 6:51:09 AM
Hey guys public sub Filess (ByVal FilesCollection As ArrayList = Nothing end su how do i fill the FilesCollection and how do i pass it as a parameter in the Filess sub ...more >>

Using Raw Sockets
Posted by MrMind_15 NO[at]SPAM Hotmail.com at 2/6/2004 5:32:55 AM
Please send me some sample for using Raw sockets. And also clearly specify that how can I set the ip header of the protocol. Please help me. Thanx....more >>

VS.NET: How can I copy controls to another webform?
Posted by Trint Smith at 2/6/2004 4:36:12 AM
In vs.net I have a webform with controls I neet to copy to another page...when I cut and paste them, the are on top of the destination pages controls and I can't re-select them to drag them to the bottom of the page where I want them. How can I do this? Thanks, Trint Net programmer trintsm...more >>

code to disable the DELETE key
Posted by ziad dodin at 2/6/2004 3:43:28 AM
how to disable the DELETE key in a gatagrid control without having to make the datagrid as READ-ONLY; I wander if there is a code to diable this key because it is very dangerous in master detail relations where the user presses the delete key and all rows and child rows disappear; It could...more >>

Shared classes or modules?
Posted by Erik Cruz at 2/6/2004 1:09:22 AM
Hello! I have read some threads discussing the fact that a module is in reality a shared class. If I try to create a Public Shared Class in vb.net I receive a compile error. Why? If I can't explicitly create a shared class, how does vb.net creates it? TIA, Erik Cruz ...more >>

Looking for a link
Posted by CJ Taylor at 2/6/2004 12:47:39 AM
Hey someone posted a thing from microsoft regarding a comparison of keywords between languages. i.e. VB.NEt -> Shared as C# -> static. Any help would be appreciated. Thanks, CJ ...more >>

Creating and showing forms
Posted by jy836 at 2/6/2004 12:07:41 AM
I have been working on an application, which to this point has only involved one Windows Form. I need to create another one; but on the Project menu, there are two options: "Add Windows Form" and "Add Inherited Form." I don't know which one to use. Also, once I choose one of those two options, ...more >>


DevelopmentNow Blog