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 > april 2005 > threads for monday april 4

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

sockets
Posted by Michael Maercker at 4/4/2005 11:21:22 PM
hi! i'm really not into networking at all and have now been asigned the task of porting a vb6-code into vb.net (compact framework, in this case) and the code uses the winsock-control. i quickly found out that .net uses system.net.sockets.socket or .tcpclient/.tcpserver. and these confuse me......more >>

Deployment - using Registry items
Posted by Tom Edelbrok at 4/4/2005 10:48:55 PM
I'm setting up a VB.NET deployment project and everything works fine. In particular, I want to set certain Registry keys with values during the deployment - this works great too. However, I notice that there is a variable within the Registry Editor of the deployment project, and it is calle...more >>

threaded timer
Posted by pmclinn at 4/4/2005 9:23:46 PM
I have a form application with a timer event on it and a couple of proceedures that run great but when I converted the code to a .dll then I ran into some issues. The problem in my class is that I have created a timer and it increments an integer =+ 1. The time fires this event without issue....more >>

Modaly Load A Windows Form User Control From Another Windows Form User Control - Sort of like a popup.
Posted by Richard at 4/4/2005 9:09:01 PM
I think I'm going brain dead on this one. Can someone give me an idea on how to do this? Some sample code would be helpful. ...more >>

How to provide hint on sub params?
Posted by Brett at 4/4/2005 8:44:05 PM
Many VB.NET subs will provide hints when you start with the open parentheses for parameters. Also, there are hints on methods. For example, Console. will provide additional information for all methods/properties pertaining to Console. How can I provide that with subs or functions...more >>

Tab Control
Posted by Sindbaad at 4/4/2005 8:11:04 PM
Hi All, I have a Tab control with 9 tabs on it. After each run the tabs are getting scrambled. Is there any way to control this anamoly. -- Sindbaad...more >>

example of linking to other data please
Posted by gordon at 4/4/2005 8:03:18 PM
Hi I am trying to connect to SAS wtih asp.net with vb in visual.studio.net 2003. I am very new to asp.net and I am trying to find my way around. Could anyone provide me with some example code that I could build on? Thanks Doug ...more >>

Question on updating data
Posted by Gary Paris at 4/4/2005 7:38:59 PM
I am pretty new at .NET and am reading a book on ADO.NET but I need some help. I have the following code in the Load routine of a sample program. I would like to read in some data and take the first row and put a few fields on a form. Then I would like to update the data. How on earth ca...more >>



Scripting Runtime
Posted by Howard Kaikow at 4/4/2005 7:18:23 PM
Historically, auntie virus software has issued false positives against code using the Scripting Runtime. Does .NET have a native replacement for the Scripting runtime? For example, is there the equivalent of a "CompareMethod" for the Collection object as for the Dictionary object? ...more >>

Crystal Report
Posted by Michael Chong at 4/4/2005 7:10:01 PM
How can I change the value of a parameter/object field inside the crystal report at runtime process. TQ Michael ...more >>

O.T.:Shameless Plug to get Free Software(for me & for you too)
Posted by james at 4/4/2005 5:56:34 PM
I recently tried out a new version of Real Basic Standard. Not too bad and it does create applications for Windows , Linux and the Apple MAC (the PRO Version). Not that I'm leaving VB.NET anytime soon!! But, I received an offer of a free upgrade to their PRO version if people will go to a p...more >>

Upgrade from 6.0 (Printer)
Posted by Ike at 4/4/2005 5:40:22 PM
Trying to ugrade a VB 6.0 application to .NET, but upon compilation, I keep getting: Printer.ScaleMode = vbInches I am getting "Printer is not declared", "vbInches" is not declared. Can someone please explain how to work around this? Thank you, Ike ...more >>

?syntax to recognize code in a 2nd file
Posted by iano at 4/4/2005 5:27:58 PM
I am trying to clone a VB6 app in Vb.Net as a learning exercise. For this effort I am not using Visual Studio.Net. So Far I have a form with a label, combobox and a command button. As I have done in VB6, I like to keep form code in the form and other code in a separate module so it is easier t...more >>

Forms.captionbutton
Posted by mark at 4/4/2005 5:20:24 PM
Public Shared Const Close As System.Windows.Forms.CaptionButton = 0 the caption button.close it closing the application form but leaving a process running, how do i stop this from happening ? - i remember solving this a while back but have since forgotten (and it wasnt in code) cheers m...more >>

Active Directory. finding groups of groups
Posted by RTT at 4/4/2005 4:52:41 PM
i can search the active directory to find the groups and i can search users and find out of what groups he's a member. But now i have to find a group, and find out what groups he's a member of, but i don't know where to start.... anybody who has an idea? thxs in advance ...more >>

With different credentials.
Posted by Yahya at 4/4/2005 4:20:54 PM
Dear Sirs, I would like to run the below code using other credentials than the user running it, how can I use different credentials? Thank you, Yahya Dim msgobj msgobj = CreateObject("CDO.Message") msgobj.DataSource.Open(sUrl, , 3) If msgobj.fields("urn:schemas:httpmail:hasat...more >>

Inherited User Control + Subclassed components + Dissapear after build!!!!!!!!!!!!!!!
Posted by snesbit at 4/4/2005 3:37:17 PM
I have 2 components. 1) A User Control with a subclassed infragistics label docked = at the top and a panel filling the rest.=20 2) A subclassed infragistics textbox control I create a new component inherited from #1 above and then I drag my #2 = (textbox control) on...more >>

Cannot change columns in datagrid when viewing child records
Posted by jwogick NO[at]SPAM aol-dot-com.no-spam.invalid at 4/4/2005 3:36:06 PM
I'm hoping someone can help me! I just have a simple form with a datagrid displaying child records from a dataset that contains two related tables Parent table>Clients Child table>cases. using the designer I tell the datagrid to display the child records only from the dataset (Relation called C...more >>

ARRAYLIST ADDING A CLASS
Posted by blisspikle at 4/4/2005 3:30:43 PM
The following sub form1_load reads in a text file that will say something like the text below. I think that the problem is that every time I add a class V_Sensor into the arraylist it puts it in as a reference. So in the end all of the arraylist items turn out to be the same as the last sensor...more >>

Server Controls
Posted by Ahmed Hashish at 4/4/2005 3:29:23 PM
Dear All Can I make a web server control that inherit from a textbox and in the same time show a button, in other words can we make inheritance and composition in the same time in the same server control. If so pls. give a sample Ahmed Hashish ...more >>

How to check for scroll bars in web browser object?
Posted by Brett at 4/4/2005 3:23:39 PM
I'm using the web browser object: SHDocVw.dll. I do this in form Load() Me.AxWebBrowser1.Navigate("http://www.abc.com/") Sometimes when a website loads, it causes horizontal or vertical scroll bars in the web browser window. How can I detect these? I'm assuming they will be completely r...more >>

VB .NET 2k3 print directly to parallel port
Posted by Peter Rohlfs at 4/4/2005 3:13:12 PM
I'm trying to bring some code from an Access database into Visual Basic .net 2k3. The access code goes directly to LPT1 as follows ---------------------------- Open "lpt1" For Output As #1 ' Open LPT1 for output. Print #1, "^FO80,85" Print #1, "^BY3,3,1" Print #1, "^B2,6...more >>

Documentation tags - equivalent of C#'s ///
Posted by UJ at 4/4/2005 3:09:54 PM
Is there a way to have VS.NET automatically generate the documentation for a class for you? I've been told by a friend that uses C# that in C# you can use the ///. Is there anything like that in VB.Net? TIA Jeffrey. ...more >>

Why "Application has generated an exception" error and not a good error message?
Posted by Samuel R. Neff at 4/4/2005 3:05:06 PM
Occasionally we get this error message when running an app on a test machine: [name].exe - Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Porcess id=[id], Thread id=[id]. Click OK to terminate the application. Click CANC...more >>

combo box question
Posted by Starbuck at 4/4/2005 2:49:01 PM
Hi Is the a way of making a combobox pull down and display contents by pressing Insert key while focus is on the control Thanks for any thoughts. ...more >>

Destructor for VB.NET class
Posted by Mika M at 4/4/2005 2:12:09 PM
Hi! My application uses self made Class. When I create an instance of it, class creates temporary file in constructor, and this file is in use as long as instance of class is in use. After instance of class will be removed, temporary needed file should be deleted too. So how can I do it?...more >>

Transpose datagrid row to corresponding label text
Posted by lukegregory at 4/4/2005 2:01:02 PM
I have a datagrid containing data from an xml file. Is it possible that when a row on the datagrid is clicked these results can update a series of corresponding labels elsewhere on the form? e.g. the datagrid contains the columns, FirstName and LastName. When a row is highlighted I'd like the ...more >>

Oledb????
Posted by Fia at 4/4/2005 1:36:33 PM
Hi I'm trying to use Oledb in Visual Basic .Net, but it doesn't work so well. Before in Visual Basic 6 I had the code below that worked. Dim tblSökaOrd As DAO.Recordset dim DB As Database Set DB = Worksp.OpenDatabase(App.Path & "\recept.mdb", False, False) SQL = "select köttid from kött wher...more >>

Make installer make app start up on login
Posted by Brian Henry at 4/4/2005 12:21:18 PM
I created a setup project for my VB.NET app and want to make it start up with windows logging in, so i told it to place it into the startup group of the users program group in the start menu (like use to work in the past) but it never runs, actually nothing in there ever runs anymore it seems ...more >>

Option Strict ON and Dictionary obect
Posted by Howard Kaikow at 4/4/2005 11:23:08 AM
Using Option Strict On, how does one deal with the two lines I've marked with comments? Dim dict As Scripting.Dictionary Dim i As Integer Dim vnt As Object dict = New Scripting.Dictionary With dict ..CompareMode = Scripting.CompareMethod.BinaryCompare ..Add("a", "a") ..Add("A", "A") vn...more >>

Open a CSV file
Posted by Stefke at 4/4/2005 11:11:54 AM
Hi, I've exported our Exchange 5.5 server info into a CSV file. I know want to create a VB.Net application which reads the CSV file and then process the information in it. Can anyone tell me what I should do to create the application. The file is called info.csv. And I want to process it...more >>

API declarations with fixed length string
Posted by Urs Eichmann at 4/4/2005 11:04:25 AM
Hello I'm trying to convert the following VB6 code to VB.NET, but can't seem to find the right API declaration. Note that the Buffer is an output field which the API call will fill a value in. VB6 Code: [VB6] Type JAG_STRING_40 Data As String * 40 End Type Public Declare Functi...more >>

VB.NET VERY Slow
Posted by Michael at 4/4/2005 10:57:08 AM
Hi, I'm new to VB.Net but have noticed a few things about the dev interface that is really starting to get annoying. First of all, while trying to work with a form and the code module for the form I notice switching back and forth between the form and code window is very slow, specially if I ...more >>

how do you send PJL commands to a printer?
Posted by Bob at 4/4/2005 10:30:50 AM
I thought this would have been easy... can someone clue me in? Bob ...more >>

Forms AcceptButton property
Posted by Alien2_51 at 4/4/2005 10:21:05 AM
I have a form with it's AcceptButton property set to a button on my forms click event, when I hit enter in runtime on the form, the cursor goes to an hourglass for a second, as if it were doing something but does not hit the breakpoint I have set, when I press the button the event procedure co...more >>

How to Share Class Properties Across Processes
Posted by Charles Law at 4/4/2005 10:15:40 AM
I have just been asked how to share functions and properties between two running applications. For example, I have App1 and App2 both running on the same machine. App1 uses a DLL (perhaps) that contains function SetProp(). When App1 calls it, a property in the DLL is set to "abc". App2 calls a...more >>

SQL connection
Posted by Dan at 4/4/2005 10:05:06 AM
I have a quick connection from a newbie. I am trying to run a stored procedure but I get the following error: Could not find stored procedure. I know it is there so what am I doing wrong? Thank you in advance. My code is as follows: Dim cn As SqlClient.SqlConnection Dim cmd As SqlCli...more >>

two console apps.
Posted by raulavi at 4/4/2005 10:01:03 AM
how do I debug console apps? If one app calls the other app (I need to debug the called app). what are each app settings? Thanks for you help....more >>

CreationTime and Windows File CreationTime why different?
Posted by Roger at 4/4/2005 9:49:50 AM
I am using .net filinfo object. I have several file in a directory on a server. (NT). When I run a simple check of each files creation date/time I am using .Net finfo creationTime. I verify this agains the xp windows explorer looking at the Create Date Time. Most of the files are exact whi...more >>

console app exit
Posted by steve at 4/4/2005 9:49:25 AM
it seems that i'm required to hit ENTER in order to exit my console app. this is not very desirable since the app is intended to run as a scheduled task. sub main creates an object that synchronizes some information via the internet. the object creates a thread responsible for the communicatio...more >>

Custom Titlebar Troubles
Posted by Jesse Aufiero at 4/4/2005 9:45:34 AM
Hi, I'm trying to create a custom titlebar for my form. I've hidden the form's titlebar by clearing the text property and setting ControlBox=False. This removes the titlebar as desired, but also has an unwanted side-effect. When I run the app, the system menu does not appear when I right-...more >>

detect clicked column in datagrid
Posted by Sam at 4/4/2005 9:22:32 AM
Hi, How can I detect if the cell on which the user clicked, belong to which column of my datagrid ? say if the user clicks on a cell in the second column, I would be able to detect it is the second column. Thx ...more >>

Open form and run event/sub
Posted by JAG711 at 4/4/2005 7:07:03 AM
How can I open a MDI childform from it's parent form and then programmically run an event or procedure from the childform. ie. run the click event code of the child form's command button....more >>

What is .NET Redistributable?
Posted by Brett at 4/4/2005 6:18:56 AM
What is the difference between the "Developers" and "General Users" links below? http://msdn.microsoft.com/netframework/downloads/framework1_1redist/ Seems one is a direct download and the other uses the Windows Update service. Also, what is the diffference bewteen .NET Framework and .N...more >>

How do I shell the following command line or process.start it (very different command!)
Posted by hack123 NO[at]SPAM hotmail.com at 4/4/2005 5:24:49 AM
G'Day all, I cant for the God in me work out how to execute the following command line in vb.net: (watch for the word wrapping also) Sub(ByVal username As String) Shell("ECHO Y| cacls h:\finance\" & username & "\" & "+Common /G " & username & ":R", AppWinStyle.Hide, True) End Sub Now ...more >>

High Speed Graphics
Posted by David Pendrey at 4/4/2005 4:44:27 AM
Greetings, I am writing an application which will need to move around 50 bitmaps on the form at a speed high enough that it appears smooth. I am currently using some custom controls to contain the bitmap and the logic for the movement in the same location and have have a loop which updat...more >>

Modem control for VB.net
Posted by Gary at 4/4/2005 3:05:29 AM
Does anyone know of a reasonably well documented modem control? I downloaded the Marshallsoft libraries, and the SERIAL library is well documented and there are plenty of code examples, but the modem stuff has no code examples which makes using it somewhat of an easter egg hunt. T...more >>

no indexof-function for collection object available.
Posted by lvpaul NO[at]SPAM gmx.net at 4/4/2005 2:15:35 AM
Hello ! I have some values stored in a xml-file. When starting my application, I read this file and store the values in a collection object. My problem is the error-handling, if the fieldname does not exist. I dont want to use try and catch. The indexof-function to check would be better, b...more >>

httpresponse.contenttype help needed
Posted by Matthew Speed at 4/4/2005 1:48:04 AM
I have a web page that returns to the user a csv list they then import into another program. When they do so they are correctly told that the server is attempting to send data of type text/csv and gives them the option to save it. Unfortunately, the suggested file name is dataexport.aspx, the ...more >>

delete rows from datagrid
Posted by Sam at 4/4/2005 1:07:54 AM
Hi, I'm doing the following : Dim dsDeleted As New DataSet dsDeleted = dsEquivalents.GetChanges(DataRowState.Deleted) dgDeleted.DataSource = dsDeleted basically I create a dataset dsDeleted that gets all the rows deleted in dsEquivalents, and I fill a datagrid dgDeleted with this dataset. ...more >>

Finalize and database connection... contradiction in msdn or a misunderstaning from my part ?
Posted by Joe Abou Jaoude at 4/4/2005 12:59:06 AM
hi, I have a component that uses a database connection. In the finalizer I dispose the connection because I read in msdn the following: "A type must implement Finalize when it uses unmanaged resources such as file handles or database connections that must be released when the managed...more >>


DevelopmentNow Blog