Groups | Blog | Home


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 > october 2005 > threads for tuesday october 11

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 30 31

Tooltip Bug with Dropdown Menus
Posted by t3rm1ght NO[at]SPAM gmail.com at 10/11/2005 9:38:22 PM
Hello everyone, I was having a strange issue with tooltips on a dropdown menu, Im using VB.NET 2005 Express Beta 2, I have a friend who has the C# IDE and had the exact same problem. Anywho, I have a menu on a form, and when I click the menu to drop down the options, I can hover over an option...more >>


Lost_in_OO…_(in_VB.NET_2003)
Posted by RG at 10/11/2005 7:49:03 PM
Sorry, I’m new to OO (thought I’ve programmed for decades in other languages), and though what I want to do here seems so trivial, I’m just not getting it to work (despite all the OO example exercises I’ve gone through in my books): - I have a Form with many labels (including Label1...more >>

Trying to use a Treeview with checkboxes to get child nodes to be marked checked when parent node is checked.
Posted by Jack at 10/11/2005 7:02:01 PM
Hello, I am trying use a TreeView with checkboxes. I would like to check more than one node and allow all child nodes of selected nodes to be checked or unchecked with the parent is checked. Thanks in advance for any help, Jack ...more >>

UserControl - DesignerMode
Posted by Dennis at 10/11/2005 7:00:02 PM
I have a UserControl with several Browsable properties. In some of the properties "Set", I execute code that calls other procedures in my control. In the Design Mode when the properties are set in the properties window, is the UserControl Property "set" called which executes the procedures c...more >>

getting icon from embedded resource
Posted by farseer NO[at]SPAM optonline.net at 10/11/2005 6:37:30 PM
Hi, I created a new resouce ("app.resx") in my project and added an icon to this resource with name "IL_ICON". I would like to use this resource in some unmanaged code, in particular, with the api function SHNotificationAdd. How can i do this? i have tried using ResourceManager to get that ic...more >>

VB.Net books Recommended for self study books
Posted by John at 10/11/2005 5:25:03 PM
Hi, I am currently using Visual Basic.Net "How to Program" by Deitel, Deitel and Nieto. Initially, going trough it at a rapid pace, skipping most exercises, did not give me enough footing. Trying to do most exercises works best, but most exercises have no answers on the accompanying CD, whic...more >>

Outlook Express
Posted by Lespaul36 at 10/11/2005 3:01:07 PM
Is there a way to go through all the messages in outlook express, or a way to go through the dbx files? ...more >>

What's wrong with this filter?
Posted by vvenk at 10/11/2005 2:19:05 PM
Hello: I have the following code: Dim lsFilter As String = Nothing Select Case rblStatus.SelectedItem.Value Case "S" lsFilter = String.Concat("D_STAT_CD_C = '", "N'") Case "R" lsFilter = String.Concat("D_STAT_CD_C <> ...more >>



How can i print the LPT1 ?
Posted by Luis Ramos at 10/11/2005 2:01:08 PM
Hello, In VB6 i use to print text to the lpt1 port, because of matricial printers and i use to do this: open "lpt1:" for output as #1 print #1, "some text" close #1 my question is: How can i do the same in vb.net?...more >>

runtime problems
Posted by Colmag at 10/11/2005 1:53:06 PM
I made an app with VB.net 2003, which I then posted to the net for others to use. I'd been updating it, and someone had been testing it for me, and everything was going well until I got a new PC, and now no-one else seems to be able to run the program. I haven't set it up as a deployment, ...more >>

Windows Installer / Setup
Posted by Charles A. Lackman at 10/11/2005 1:33:35 PM
Hello, I am making as setup/deployment project in Visual Studio.NET and would like to know how to change the top window and the Icon from the default icon of a computer to something I create. Is there a way to add a pic to the msi setup project? Thanks, Chuck ...more >>

Reading XML File
Posted by Ian at 10/11/2005 12:08:01 PM
Hi I'm pretty new at this so please don't laugh too hard. I'm trying to load an xml document using VB.NET and having a hard time. My code doesn't crash but it doesn't work either, the first msgbox returns 0. Help (please!) Below is my document and snippet of code <?xml version="1...more >>

Mapping Network Drives
Posted by GWold at 10/11/2005 12:07:03 PM
Hi all! I'm trying to figure out how to map a network drive in VB.NET/.NET Framework. I understand that I can add references to wscript and the scripting runtime library, but I want to do it w/VB.NET & the Framework. Suggestions? Thanks in advance!...more >>

Delete Selection from CheckBoxList
Posted by Will Lastname at 10/11/2005 11:48:36 AM
I have a windows application that displays users from access database in a checkboxlist. What I am attempting to do is select a user or users from the checkboxlist, loop through, and delete their corresponding information. I have setup a textbox to print the SQL string that is generated and it s...more >>

Force a Scrollbar in DataGrid
Posted by Price Brattin at 10/11/2005 11:35:09 AM
I dragged a datagrid onto a VB.Net WinForm and used the properties page and a few lines of code to set it up, including the DataSource. No wizard setup was used. It works fine except for one thing: there is no vertical scrollbar even there are more lines than can be shown on the datagrid. Th...more >>

Problems with my Service and ODBC
Posted by Nijazi Halimaji at 10/11/2005 10:43:14 AM
Hi newsgroup I have some problems with my service which is using ODBC-Connections. My service is executed as a local system (I tried already every other account type, even the domain-admin) If the database i am accessing with odbc is stored on my local hard disk, then I have no problems...more >>

Division by Zero, Exception or Not?
Posted by Sean Kirkpatrick at 10/11/2005 10:23:29 AM
Sometimes, when I think I understand something and try to explain it to someone else, I realize that I don't understand it at all. Consider: Dim i As Integer Dim d As Double Dim a As Integer = 3 Dim b As Integer = 0 ' case 1 Try Tex...more >>

Stored Procedure Problems
Posted by Thomas Beyerlein at 10/11/2005 8:57:11 AM
I am building a UI, I am using stored procedures for executing SQL commands on the server. When I ran a insert stored procedure it returned me a error message that it could not find a parameter that I sent it, it was sent but in the building of the parameter the first and second parameters place...more >>

Validate Text - Name, Phone Etc
Posted by Dragon at 10/11/2005 7:34:18 AM
Hi, I am trying to find out if there is a good (Built-in?) way to validate text input. I would like to check a textbox to see whether user enter a proper name (without numbers, symbols etc) or if it is a valid phone number (no letters or symbols) etc or not. Right now I am sending the strin...more >>

SQL Query/Command against In-Memory DataTable?
Posted by Terry Olsen at 10/11/2005 7:33:04 AM
I have an in-memory DataTable with about 35,000 rows. I have an IP address column that is populated and a hostname column that is not. I want to be able to quickly update the hostname column so that it shows the hostname for the IP. Rather than iterate through all the rows, I'm wondering if t...more >>

Registering components(dll, ocx, etc) via API
Posted by bianko_124 NO[at]SPAM libero.it at 10/11/2005 6:39:17 AM
Hi, I wrote this little function to register ocxs or dlls.. When it's all right this function works properly, but justly, for example, if the application runs with a user that hasn't administrator rights the registration does not work. The problem is that it seems that the called function 'dllre...more >>

Access another project in same solution.
Posted by blue_nirvana at 10/11/2005 6:05:02 AM
How do you access a form or code from another project in the same solution? I have a solution that has several projects and I want to be able to load a form or call code from say Project2 from Project1. I thought it would have been something as simple as Project2.Whatever, but that does not ...more >>

C to VB .NET
Posted by Nikolay Petrov at 10/11/2005 5:04:37 AM
Can anyone convert some C code to VB .NET for me? Thanks in advance!! #define LOGONID_CURRENT ((ULONG)-1) #define SERVERNAME_CURRENT ((HANDLE)NULL) typedef enum _WINSTATIONINFOCLASS { WinStationInformation =3D 8 } WINSTATIONINFOCLASS; typedef struct _WINSTATIONINFO...more >>

Does a timer.elapsed start a new thread?
Posted by Philip Wagenaar at 10/11/2005 2:05:02 AM
Hello, I am using a timer object in my Windows Forms Application. Does the code in ..elapsed event run in a diffrent thread? If the interval is set to 10 milliseconds and the time to execute the code in the .elapsed event takes 1 secocond to complete, what happens? 1) Timer starts. 10 mi...more >>

Robust solution for processing files in a folder
Posted by Philip Wagenaar at 10/11/2005 1:58:04 AM
Hello, I am writing an application that processes xml files that are stored in a folder. The application picks up the files in a folder, processes them and then deletes them. What is the best approach on loading the xml files from the folder into my application? At the moment I am usi...more >>

using LsaOpenPolicy in VB.NET
Posted by AndyL at 10/11/2005 1:32:01 AM
Hi all, in VB.NET i want to enumerate the list of users with a special userright. So i want try to use the LsaEnumerateAccountWithUserRight. When i try to open a policy handle i return a nullreference error and i don't know why? here is my code: Private Declare Function LsaOpenPolicy L...more >>

Assigning a 'type' to a variable at runtime
Posted by JohnR at 10/11/2005 12:00:00 AM
I'm trying to find a way to create a variable of a given type at runtime where I won't know the type until it actually executes. For example, dim x as object = "hi" x is declared as an object but x.gettype returns 'string', so it knows it contains a string. If I want to create a variab...more >>

Case insensitive Arraylist.indexof search
Posted by JohnR at 10/11/2005 12:00:00 AM
I have an arraylist of string values. I would like to search the arraylist to find the index of a particular string and I would like the search to be case insensitive. dim al as new arraylist al.add("one") al.add("two") dim x as integer = al.indexof("ONE") I would like this to find t...more >>

Catch Click Event at Design Time
Posted by Don at 10/11/2005 12:00:00 AM
Is there a way to capture click events in the form designer? I'm trying to create a control similar to the TabControl (which seems to handle clicks in design mode) and would like to be able to click on parts of the control in design mode and have the control react, but I can't seem to trap th...more >>

Creating framework objects from class name strings
Posted by Oenone at 10/11/2005 12:00:00 AM
Hi all, If I have the name in a string of one of the framework's core classes (such as "System.Collections.ArrayList"), what's the easiest way for me to create an instance of the appropriate class? In VB6 I would have simply used CreateObject, is there an equally simple way in VB.NET? ...more >>

getting 'real' table datasource from grandchild datagrid that is based on dataview
Posted by astro at 10/11/2005 12:00:00 AM
I have a datagrid that is two levels down from the dataview (i.e. grandchild). I have spent 3 hours trying to get the syntax of determining it's real datasource (i.e. not it's source based on it's relationship with the dataview). argh! company ---> person --->contact -c...more >>

hmmm... Is this possible?
Posted by Matt at 10/11/2005 12:00:00 AM
I have a base class that is derived from an existing class and i need to have ANOTHER class that is linked to the objects created in their class. OK icant explain it properly. Here is part of the code. Ok i assume you have read the code by now. So, without creating a new dictionary and ru...more >>

Newbie
Posted by Andy at 10/11/2005 12:00:00 AM
Hi Just begun som elight coding with VB Express 2005. And have also checked out the coding4fun part on MSDN. As far as I can see most examples are coded with C#. Does this mean that C# is the way to go instead of VB 2005? /A. ...more >>

Calling known functions in an unknown DLL
Posted by JB at 10/11/2005 12:00:00 AM
I have an aplication which used to be created in Delphi 5. For various reasons we want to try to recode that in vb .net but the original application called functions inside one or more dlls that were loaded dynaically by the name found at run time. i.e. what would happen is that the applicatio...more >>

Adding a Datarow
Posted by Vayse at 10/11/2005 12:00:00 AM
As soon as I try to set rowFixtures.HomeTeamID I get an error: "Object reference not set to an instance of an object." What should I changes? Dim rowFixtures As HTPlannerDataSet.LeagueFixturesRow rowFixtures.HomeTeamID = "123" rowFixtures.HomeTeamName = "Team A" rowFixtures.AwayTeamID = "456...more >>

Comment field of jpg image
Posted by Frank Teunen at 10/11/2005 12:00:00 AM
Hello all, I have a written a vb.net windows application for jpg files. I want to write a comment to the jpg file. You can do it manually with e.g. irfanview, but how can I do that in vb.net ? Thx Frank Teunen ...more >>

explorer context menus
Posted by Doug Bell at 10/11/2005 12:00:00 AM
Hi, If I modify my Registry adding a new key HKEY_CLASSES_ROOT\*\shell\Use My App\command with a (Default) Value of C:\Program Files\Doug\DotNetApps\MyApp.exe "%1" then right clicking on files in the Explorer Windows opens the context menu with the option "Use My App" and selecting this runs My...more >>


DevelopmentNow Blog