Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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 > july 2004

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

Question about installation
Posted by Brad at 7/31/2004 8:27:55 PM
I already posted this on the vb.installation newsgroup, but this group seems quicker to respond. I want to install VS .Net on a laptop that has a partitioned drive. Unfortunately this is factory manufactured and the restore disk resets the partition on the hard drive. Without having to purcha...more >>


not inherit property
Posted by Frank at 7/31/2004 4:20:58 PM
Hi, a question probably asked before, but I can't find the answers. Base class X, classes A, B and C inherit class X. In class A I do not want to inherit property (or function or method) P1. Possible? How? Thanks in advance Frank ...more >>

"top" of datatable (newby)
Posted by Fred Nelson at 7/31/2004 3:52:49 PM
Hi: I have created a datatable and I'm able to access it by key values. I need to be able to go to the "top" of the datatable and process records sequentially until they are completed. I can't figure out the command to set me to the top or "beginning" and then read. (datatable.select?)...more >>

access table and vb.net
Posted by NewbieTerry at 7/31/2004 3:47:25 PM
I have a access database with a table called Transactions. I want to copy select records from the table Transactions to a seperate table within the database called Month. I think the following is suppose to work assuming I have a valid conncetion...but of course it doesnt... I can run the select...more >>

How to use AND in regex
Posted by kijak at 7/31/2004 3:24:24 PM
Can anyone describe the best way to use AND in REGEX: Look for "land" AND "glory" String: "The land of hope af glory" - MATCH String: "The land of hope" - NO MATCH Anyone? Thanks, ...more >>

Call Sub vs. fake a key press
Posted by Ricky W. Hunt at 7/31/2004 2:07:43 PM
First, the subject probably doesn't use the correct terms but I'm not sure what it's called in VB. I'm writing a media player app. The subroutine that handles the "open file" button contains an If statement to see if a file was already playing and if so executes some code to stop the previous ...more >>

Determing internal format of file
Posted by RD at 7/31/2004 1:47:02 PM
We're picking up files on an FTP server using a vb.net program. We need to know if the file we pick up is an ASCII comma separated file or if it is in an Exel format without relying on the extension of the file name exclusively. So we have to look in the file itself using Vb .Net program code. ...more >>

.text / String Manipulation
Posted by tma at 7/31/2004 12:56:35 PM
I have a web form where users enter basic information such as their name and address. How can I ensure that when that data gets written to the database it gets "converted" to first letter capital, all others lower case? For example "john doe" would go into the database as "John Doe". Is there an ...more >>



Executing a procedure remotely
Posted by RD at 7/31/2004 12:15:34 PM
Small LAN, one computer one I have a VB.net program running, prog1. One computer two, I have another Vb.net program running, Prog2. In prog2 on computer 2 I need to be able to issue a command ,associated with a parameter (in a button click event) that will cause the execution of a function or ...more >>

Re: StatusBar Icon can't Switch
Posted by Anony at 7/31/2004 11:25:57 AM
Sorry for typing mistake, I mean If .Icon Is micoIcon1: Private Sub SwitchIcons() With sbpIcon 'this is the StatusBar Panel name If .Icon Is micoIcon1 .Icon = micoIcon2 Else .Icon = micoIcon1 End If End With End Su...more >>

StatusBar Icon can't Switch
Posted by Anony at 7/31/2004 10:46:16 AM
Hi All, I have two icons: Private micoIcon1 As New System.Drawing.Icon(System.IO.Path.Combine(Application.StartupPath, "Icon1.ico")) Private micoIcon2 As New System.Drawing.Icon(System.IO.Path.Combine(Application.StartupPath, "Icon2.ico")) I want switch them: Private Sub SwitchIcons...more >>

Newbie: Error message based on how program is called
Posted by Bari Allen at 7/31/2004 10:27:15 AM
On the first line of sub Main() in my console application, I check for the correct number of command line arguments, as follows: If Environment.GetCommandLineArgs.Length < 3 Or Environment.GetCommandLineArgs.Length > 4 Then When I run the .exe file from the machine it's sitting o...more >>

Adding text to right click "open with"
Posted by vanvee NO[at]SPAM comcast.net at 7/31/2004 10:03:29 AM
Hi I have an application, that when a user double clicks a file (that the application creates), the application opens. When the user right clicks a file and selects "Open With", the program icon shows up in the list but the program name is not there (next to the icon). Does anyone know how ...more >>

How do I set the column width on a Windows Form Data Grid?
Posted by Tony at 7/31/2004 9:03:02 AM
How do I set the column width on a Windows Form Data Grid? Thanks...more >>

Resume Downloads
Posted by scorpion53061 at 7/31/2004 8:50:42 AM
Hi I am looking for a tutorial or code sample that allows a download to be resumed in the event the connection is broken in a windows vb.net application. Thanks for any help. Kelly Martens http://www.kjmsolutions.com <http://www.kjmsolutions.com/> admin@nospamherekjmsolutions.com <m...more >>

How do I get the selected item from a datagrid
Posted by Tony at 7/31/2004 8:29:01 AM
How do I get the selected item from a datagrid? Thanks...more >>

Listbox.SelectedObjectCollection
Posted by Tony at 7/31/2004 5:53:01 AM
I've added objects to a listbox using lst.DisplayMember = "CustomerName" lst.Items.Add(New CCustomer( theData("ID"), theData("CustomerName"))) if I used lst.SelectedIndex I always get the last item in the list irrespective of whether it was selected. So I thought perhaps ...more >>

ToolTip for ListBox-/ComboBox-Items
Posted by Timo Kunze at 7/31/2004 3:01:16 AM
Hi! If you move the mouse over an item that's part of a treeview and wider than the treeview, a tooltip showing the full item text will be displayed. I try to do this for ListBoxes and ComboBoxes. For ListBoxes I got it working, but not for the ListBox part of ComboBoxes. Do you know any s...more >>

vlookup in visual basic
Posted by Rebecca at 7/30/2004 8:00:46 PM
could someone tell me the correct syntax for using vlookup in visual basic...more >>

Array length = 100 should be from 0 to 99 ?
Posted by User at 7/30/2004 7:17:39 PM
Hi, This is very basic, It may be a repost, if so I'm sorry. The problem is that this declaration : Private strMyArray(100) As String will create an array of string with a length of 101, but the length should be only of 100 (0 to 99). Is there a setting in VB.NET to enable arra...more >>

cannot create a child list
Posted by Agnes at 7/30/2004 5:07:09 PM
Please be kind to take a look dsSeaInvInfo.Clear() daSeaInvInfo.SelectCommand = New SqlCommand daSeaInvInfo.SelectCommand.Connection = conSea daSeaInvInfo.TableMappings.Add("Table", "invoiceheader") daSeaInvInfo.SelectCommand.CommandText = "select * from ...more >>

WMI for Printer Status??
Posted by Harry Simpson at 7/30/2004 5:00:31 PM
I'm trying to grab printer status for a printer with WMI I got a mo("PrinterState").tostring of "128" for a paused HP printer. What is "128" equate to? It did give a mo("PrinterStatus").tostring of 1 = "paused" which was correct but it took a while to display the correct state. When I un-pa...more >>

WM_CLOSE
Posted by Steven at 7/30/2004 4:56:40 PM
Hello, Does anyone have any code that will catch a WM_CLOSE message (or any window message) sent to another application? TIA, Steve ...more >>

RichTextBox cursor
Posted by Nathan at 7/30/2004 4:43:47 PM
In a RichTextBox, how do you get/set the current location of the blinking cursor (not the mouse cursor)? Thanks ...more >>

Public vs Friend
Posted by Dennis at 7/30/2004 4:17:02 PM
I have read and re-read VB.Net's help on scope of variables but darned if I can understand the difference between Friend and Public variables? -- Dennis in Houston...more >>

datagrid binding problem
Posted by mark at 7/30/2004 3:35:02 PM
What I have is three forms. Form one with buttons 1, 2 and 3; and forms 2 and 3 with datagrids. Button 1 populates arrays a(i,j) and b(i,j) with values. Button 2 creates a datatable containing the a(i,j) array then adds that table to a dataset which is in turn bound to a datagrid in an instan...more >>

Setting MDI Child Form location programatically
Posted by Tom at 7/30/2004 3:32:21 PM
I want to be able to 'make' a MDI Child Window appear at the same place in my MDI container. For example, maybe I want this Child window to always appear at Top=0 and Left=0; or, when the user exits my Child window, I save the last location for that window, and then when the reopen the window I ...more >>

Component in Toolbox
Posted by BluDog at 7/30/2004 3:16:08 PM
Hi I have a component that inherits from TreeView, my project is a standard exe. How do i get the component into the toolbox for use within the project? I find that only controls based on UserControl apear there automatically, therefore if i set the component to inherit from UserControl it...more >>

web hosting
Posted by Edward Bird at 7/30/2004 2:49:00 PM
Hi, I've written an application in VB.NET and SQL Server and want to port it onto the internet. What is the best way of going about this? I would like to run my own server from home? Is this possible? Can anyone recommend a book/article on how to do this? Alternatively can anyone recommen...more >>

.NET clarification of terms
Posted by Daniel Klein at 7/30/2004 2:42:39 PM
A recent answer to a post I just made (and a good answer it was) brought up a question that I found I was not clear on, and I'm sure other .NET'ers would like to know as well. What, exactly, is an assembly and how is it different from a 'solution'? Is it that a 'solution' can contain many 'a...more >>

Open File Dialog
Posted by Simon at 7/30/2004 2:28:54 PM
Does anyone know what is the control that appears at the top of most Open File dialog boxes (the one next to the "Look in:" label)? Thanks ...more >>

How to office ?
Posted by Jarod at 7/30/2004 1:27:01 PM
Hello Where I can get some manuals ( with examples :) how to program with office ( vb.net of course ). So let's say I need to do something about the attachments... I found somewhere in books that I need to add reference to office outlook... But why it's not in MSDN... ( maybe it is somewhere ). But...more >>

DataTable Processing
Posted by Fred Nelson at 7/30/2004 1:24:51 PM
Hi: I have built and loaded a datatable with three columns and defined the first as a primary key as below: ' define datatable dim fvtable as new DataTable dim fvrow as DataRow fvtable.Columns.Add("fvident", GetType(String)) + two more columns ' define primary key DIM PrimaryKeyCo...more >>

calling a control at runtime
Posted by SL at 7/30/2004 1:17:44 PM
I have a packaged control that I want to work off a button. How do I call it from btn_click() For example: Private Sub controlA_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles controlA.Click End Sub Private Sub btnControlA_Click(ByVal sender As System.Object, B...more >>

Usage of the "New" KeyWord
Posted by Sam at 7/30/2004 1:17:28 PM
Hi everyone Could anyone help me understand the usage of the "New" keyword I'm new to VB.Net. 1. Why do we use the "New" keyword on some object type variables such as the myPen of the example below and not with the bgColor. Both the Pen and Color are objects Dim myPen As Pen = New Pen(...more >>

Menu Items Leaking
Posted by Rich B. at 7/30/2004 12:39:39 PM
I have an MDI form with a single child form. I have found a couple of circumstances that appear to cause the framework to leak Int32s, MenuItems, MenuItemCollections and sometimes TRACKMOUSEEVENTs. This happens if I disable/enable a menuitem, add a new menuitem programatically or click on an e...more >>

Class file is destroyed
Posted by Bob Day at 7/30/2004 12:33:08 PM
Using VS 2003, VB.net, MSDE... I opened up a large class to see the following on my screen: ]¢£:$W¸ º¾~'ï¢Û½©,Ö·¥f¿í$bön# i¥k<~I1Í'Ñ ¢Vôú?¨iâ*Z:QdÝsØô²iOOÑ.f±ÁaQ@ç,>]¦Në ®¬Q{>\#·5²W?¤G?T^ÂiÝ{ú6­¾ès¶ëPT6Ô«qí-å% nE>ȁ .;îº"îÎÈ¿Kõ J'u%T.¸'+MmNð!û#É]¦µÉlüS^ ÿb Ëè%Ú¥...more >>

Installation problem with .Net 2.0 beta
Posted by vbMark at 7/30/2004 12:10:00 PM
No one is answering my post in the beta newsgroup so I'd thought I'd try here. This is in regards to Visual Basic .Net 2005 Express Beta running on XP Pro. After the download and after the installation bar goes all the way to the end, a message box pops up saying: Error occured during se...more >>

Loading external program
Posted by Aaron Bellante at 7/30/2004 11:51:28 AM
I can't find the syntax I need (I'm new to VB) to load an external program from mine. Basically, I just want to load a PDF when I click on an image in my program. Any help would be great. ...more >>

Crystal Reports Viewer + progress of report generation
Posted by Brian Henry at 7/30/2004 11:34:24 AM
Is there any way to get the status of a report being generated by the crystal reports viewer control? I have a report that takes up to 10 minutes to run and it looks like it's just jamed while this happens... I'd like to build a status window to show the progress as a percentage or something, but...more >>

SPEED QUESTION
Posted by Agnes at 7/30/2004 10:58:55 AM
In my form load() Dim daSeaInvoice As New SqlDataAdapter("select * from InvoiceHeader ;select * from invoicedetail, conSea) dim myDataSet as new dataset() daSeaInvoice.fill(mydataset). As I got over 50000 records in invoiceheader and over 200000 record in invoicedetail It seems quit slow t...more >>

Block spam from your inbox
Posted by Richard Tappenden at 7/30/2004 10:51:12 AM
Tired of getting unwanted emails in your inbox? Emailkey.com offer protection for up to 3 existing email addresses for less than £1 per month. The solution includes spam checks to identify spam mail, accepted and blocked lists to enable you to control who you receive messages from, Challenge/Re...more >>

Datagrid Column Forecolor
Posted by Carl Tribble at 7/30/2004 9:59:56 AM
What is the best way to make all the text in a specific column in the datagrid appear Red? Thanks, -Carl ...more >>

AndAlso & OrElse
Posted by Raterus at 7/30/2004 9:59:06 AM
I kinda just stumbled across these operators, they seem great, as you = can forget the second expression depending on the result of the first, = but are there any cons to using these? From my viewpoint it seems I can pretty much to a find / replace on my = existing code and pick up a performan...more >>

DLL files location
Posted by Ivan at 7/30/2004 9:45:59 AM
Hi All, i found that all the referenced DLL files should be in the same folder of the execute file what can i do if i want all referenced DLL files located in a different path to the execute file?? Thanks, Ivan ...more >>

VB.Net 2003 and VS 2005 not working together
Posted by David L Wright II at 7/30/2004 9:35:54 AM
Does anyone know when building a msi file under VB.Net 2003, it would try to install something from the VS 2005 Beta 1? I have both products installed. Thanks, ...more >>

VB.NET Chat Application
Posted by Jay Esguerra at 7/30/2004 9:30:46 AM
Does anyone know where I can start to learn how to develop and chat application. Suggestions or url? ...more >>

When to set object references = nothing
Posted by Mike Eaton at 7/30/2004 8:57:03 AM
Hi all, What do people regard as the best practice with respect to freeing object references when you're done with them? Some people I've worked with in the past suggested that if you create an object with "New" then you should free/set it to nothing when you're finished with it, regardless of w...more >>

StreamReader refuses to let go of file
Posted by dc NO[at]SPAM yachana.se at 7/30/2004 8:52:40 AM
I have an winform application that uses System.IO.StreamReader and Serializer.Deserialize to load some data from a file, if any error is detected in the file a new file should be written to the same directory, I use a StreamWriter and Serializer.Serialize to do this. The problem is that when the...more >>

Help With Setting Permissions on Folders
Posted by Jeremy Winchell at 7/30/2004 6:55:02 AM
I have an applications that imports new AD users. It creates a folder to store the user profile information, and a folder for their home directory. I would like to set the Permissions on these two folder objects, but I am unsure how. I am fairly new to this side of things so I'm looking for som...more >>


DevelopmentNow Blog