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 > january 2006 > threads for wednesday january 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

Locking Application to HDD Sr.No.
Posted by surendra.rajput at 1/11/2006 10:29:28 PM
Hi, can anyone help me with the code or instructions to write a code to read the HDD sr no and lock my application to this no. for security and piracy protection of my application. Thanks a million in advance. Surendra ...more >>


MDI
Posted by S4 at 1/11/2006 9:45:54 PM
I have a search screen that calls a MDI Parent form that has several MDI Child form options. Since more than one search can be clicked on and therefore more than one MDI Parent form can be open at one time, I need to keep all variables within each MDI Parent/Child session distict. What is t...more >>

Error Trapping for trying to run an exe file without supporting files
Posted by Paul Bromley at 1/11/2006 7:54:39 PM
I have distributed an exe file that depends on a number of other files and directories within the application directory. Do not ask me why some peopel should choose to do this, but for some strange reason a number of people are trying to run the exe file from the desktop or elswhere outside th...more >>

MDI's
Posted by S4 at 1/11/2006 6:18:22 PM
How can I preserve variables for a MDI session? Thanks -- Richard________________________________ This mailbox protected from junk email by MailFrontier Desktop from MailFrontier, Inc. http://info.mailfrontier.com ...more >>

Summary of my experience with combo box, any further suggestions ?
Posted by Mark L. Breen at 1/11/2006 5:06:01 PM
Hello All, I have been playing with a combo box for the last day or so, attempting to get my head around the best or the recommended way to update them. I had problems setting the .Text and also the .SelectedValue and also the ..SelectedText. Following comments and suggestions on the news...more >>

Datagridview keypress event question
Posted by Bob at 1/11/2006 4:13:19 PM
In that event, how can you find out if the keypress event was in a certain column? Say you have datagridview1, columnname1, columnName2 You want to do something only with the keypress event of column2, do nothing special with column1 Private Sub Datagrid1_KeyPress(ByVal sender As Object, ByV...more >>

Convert Text To HTML
Posted by Husam at 1/11/2006 3:16:02 PM
Hi EveryBody: Can any body told me how can I convert the TextBox.Text or RichTextBox.text to HTML ? Any help or redirection will be appreciated regard's Husam...more >>

Inheritance
Posted by Kalim Julia at 1/11/2006 2:50:15 PM
Public Class RichBigDaddy Public Sub PlayPolo() Trace.WriteLine("RichBigDaddy::PlayPolo") End Sub End Class Public Class TrustFundSnob Inherits RichBigDaddy Public Sub PlayPolo() Trace.WriteLine("TrustFundSnob::PlayPolo") End Sub End Class=====================...more >>



Excel type calculation
Posted by Paul Remblance at 1/11/2006 2:32:53 PM
Is there a 'simple' way to perform a calculation on a textbox entry similar to Excel. For example: if the user enters =2*3 the validated event changes it to 6. ...more >>

Two Relatively Simple Questions
Posted by The Confessor at 1/11/2006 2:22:57 PM
First, I have four Visual Basic .Net projects in my Visual Studio solution. Each project modifies and/or uses information in four random access files in different ways. Hence a large portion of code is shared between two or more of these four projects. This leads to difficulties, since m...more >>

Extending Business Object
Posted by Brandon Miller at 1/11/2006 1:38:03 PM
All, I have an existing business object (VB.Net) which returns user IDs for our locations in our regions. One of the properties objReg.Manager returns the manager's user id (integer) for a given location. What I'd like to do is implement something similar to .ToString, so I might call - ...more >>

Declaring Variables Within a If Steatement
Posted by jhightow NO[at]SPAM gmail.com at 1/11/2006 1:20:42 PM
The following code : For i as system.Int32 = 0 to 4 If i < 2 Then Dim s as System.String s &= i.ToString Console.WriteLine(s) End If Next For i as system.Int32 = 0 to 4 If i < 3 Then Dim n as System.Int32 n += i Console.WriteLine(n) End If Next Returns the fo...more >>

Another dumb datagrid view question; sorry ;-)
Posted by Bob at 1/11/2006 1:00:05 PM
Vs2055, vb.net. I have two related datagridviews they're both bound to related tables. Best way to give idea is as follows. Parent datagrid is a list of companies. Child datagrid is a list of employees for each company. So far so good. Child company has an internal Primary key foreign key Rep...more >>

Open pdf file with button in VB 2005
Posted by Jedi10180 at 1/11/2006 12:55:03 PM
I am making a CD for the non-profit organization I work for. The CD contains all of the publications that we publish and will contain a GUI to access them. When the user clicks on a publication button in the GUI, the pdf of the publication needs to open in an Adobe Reader/Acrobat window. I can...more >>

Option Strict
Posted by YYZ at 1/11/2006 12:55:01 PM
After reading many messages in this group, it seems that the preferred setting for this is ON. Okay, I did that in my project (first with ..Net -- long time VB6 developer) and now a bunch of problems have cropped up. Most are easy to solve with using an explicit type cast cType(whatever, whate...more >>

Ask for reference sites
Posted by Kalim Julia at 1/11/2006 12:34:23 PM
Does Anybody know the reference site that explain more on overload, shadows, override ......? ...more >>

Novice Question About Webclient
Posted by Flashster at 1/11/2006 12:31:01 PM
I'm a beginner so please be gentle..... I want to (if its possible) post information to a web based form from my windows form app and receive the resulting data from the web page. The web forms code appears to be in javascript (not sure if that is relevent). I have tried, as a test, usi...more >>

Automatically unselecting text
Posted by hamil at 1/11/2006 12:11:03 PM
I have a filled combo box. After making a selection, the test stays in the "selected" color, in my case blue. Is there a way to automatically "unselect" the combo box after a selection is made? This action also applies to text boxes as I recall. Basically, I don't want my form to have the blu...more >>

Window Form's icon problem?
Posted by Nina at 1/11/2006 11:54:02 AM
Hi there, I assigned icon for a window's form using form's Icon property at design time. Now I want to change the icon. I tried to replace the old icon with the new icon using form's Icon property. Somehow in the form's property window's Icon property has changed to new icon, but on th...more >>

How to maximize the form on open?
Posted by Steven at 1/11/2006 11:38:37 AM
I have a form which contains a maximize box at the top, I want to know how can I maximize this form once the form is initialized? Thanks! ...more >>

A place to discuss future vb featuresause?
Posted by Doker at 1/11/2006 11:24:03 AM
Is there a place where people can give their suggestions to adding new featers to future releases of vb? Ex. DirectCast(obj, typ) makes me crazy! C# hase the (obj as typ) statement which is shorter and what's more VB-Style! People often use and remember CType only because it's shorter then...more >>

Basic Date question
Posted by dgk at 1/11/2006 10:38:18 AM
How do folks handle a situation where a Date that is a column in a table isn't known for a particular row? Do we just leave it uninitialized and have it show up in reports as 1/1/0001or something?...more >>

Crystal 11 & .NET 2003
Posted by Bertoli at 1/11/2006 10:22:05 AM
Dear friends, Do somebody is using Crystal 11 and .NET 2003 ? Do you think its a good idea to buy this version? regards, Bertoli ...more >>

vb.net strings passing Win32 Dlls - HELP
Posted by marfi95 NO[at]SPAM yahoo.com at 1/11/2006 9:38:01 AM
I'm not sure what other groups this should go to, but I'm trying to write a Win32 DLL that I can call from my vb.net app. I'm having a real tough time, as this is printing a different char set than what I expect. I'm not sure if I'm doing something wrong or its not setup right, but it looks l...more >>

uint32 conversion on win32_pingstatus
Posted by James at 1/11/2006 9:10:29 AM
Dim str As String = "select * from win32_pingstatus where address= '192.168.0.1'" Dim search1 As New ManagementObjectSearcher(str) Dim result As ManagementObject Try For Each result In search1.Get If result("statuscode") = 0 Then...more >>

Clean up issues
Posted by Rob at 1/11/2006 9:05:26 AM
I have a simple application consisting of about 4 forms and a few db connections... I would like to make sure that I have done proper clean up when the user exits the application. For all connections I have included a... cnn,Close() cnn.Dispose() Is there something similar that shou...more >>

Handling Events in VB.Net
Posted by Harry Strybos at 1/11/2006 9:03:17 AM
Hi All I have a project called WFL which contains a calss called Company. I have a second project called UI which contains a form called frmCompany. I have set a reference at UI to WFL.Company. In WFL.Company I have: 'skeleton code Public Class Company Public Event Refresh ...more >>

New kind of warning
Posted by Military Smurf at 1/11/2006 9:00:06 AM
I have a very simple function I'm working on. Function CarSpeed(ByVal kph As Integer) If kph < 0 Then _quote = "the car is in reverse" _actualspeed = kph ElseIf kph = 0 Then _quote = "the car is parked." _actualspeed = kph ...more >>

Usercontrol: is this possible?
Posted by johnb41 at 1/11/2006 8:48:57 AM
I created a UserControl (basically containing a datagridview for showing some data). I need this UserControl to be visible on 2 forms at the same time. Here's a stripped down version of some code: Dim Myusercontrol as UserControlDataGrid Myusercontrol = New UserControlDataGri...more >>

recursive function
Posted by Andy at 1/11/2006 8:43:17 AM
Hi all, i am pretty new to programming and have a (simple?) problem here: I want to populate a Treeview with data from a table. Table layout is: ID, ParentID, Description There can be infinite levels, the starting level for ParentID is 0 (this is root level). I know that I will have to m...more >>

Shared Memory
Posted by Ravi at 1/11/2006 8:40:06 AM
I have several apps (some written in VB6, others in VB.NET) that need to be able to see the same area of memory (shared memory), in particular an array. I know that I can use win api calls (CreateFileMapping, MapViewOfFile etc.) from multiple VB6 apps to look at this shared memory. The shared...more >>

is this even possible?
Posted by rodchar at 1/11/2006 8:17:02 AM
hey all, is there a way to call a vb.net app from excel (i know the vice versa is possible of course)? If so, how and is this a common thing to do? Safe? Thanks, rodchar...more >>

What happened to the Class view in VS2005?
Posted by Cyril Gupta at 1/11/2006 7:43:17 AM
In VS2003 There is a Class viewer option in Solution explorer which lets me browse the classes in my project. This feature is missing from VS2005 Express edition which I downloaded. Is this feature present in the professional version? I hope its there because I am quite used to the class vi...more >>

Thread management in a Windows service
Posted by Gregory Gadow at 1/11/2006 7:17:08 AM
I have a service written in VB.Net 2.0 that watches a folder for text files and, when a text file is placed in the folder, moves it elsewhere and processes it. I would like to optimize the service by putting each document on its own worker thread. My main question is: what would happen if a se...more >>

Help decoding Base-64
Posted by Roshawn Dawson at 1/11/2006 6:23:11 AM
Hi, I have an xml file that contains a single node that is Base-64 encoded. What I'd like to do is decode this node and write its decoded data into a separate file. I've run out of ideas. What I get is the decoded data as well as byte data. How do I simply write the decoded data without t...more >>

VB 2005 - How to hook into Windows to intercept all mouse events?
Posted by Noozer at 1/11/2006 2:03:40 AM
I'm trying to write a small application that intercepts middle clicks anywhere in the Windows environment. I want to perform different actions, based on the application that the mouse pointer was over at the time of the middl click. How does one insert a hook into Windows for a VB 2005 to a...more >>


DevelopmentNow Blog