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 > september 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

Why Does VS Remove My Parens, i.e. Timer() -> Timer
Posted by eBob.com at 9/30/2004 11:55:42 PM
My VB.Net app will require a timer of some sort. So I did some research and decided to use System.Windows.Forms.Timer, I guess mainly because while I have practically no experience with Events, I have absolutely no experience will CallBacks. The only example I've been able to find for this co...more >>


getting the PwdLastSet attrib value though .net
Posted by Sameh Ahmed at 9/30/2004 11:45:02 PM
Hello there I need to get the "PwdLastSet" of a user object to know when he last set his password. I am using DirectoryServices.DirectoryEntry to bind to the user object, but it either gives "Argument 'Prompt' cannot be converted to type 'String'." or when I use .tostring it returns "system._co...more >>

How to go to next or previous in a DataGrid
Posted by S.Hoa at 9/30/2004 11:44:01 PM
Hello I want to have a button so that when I click, I can go to the next record in a DataGrid Thank you ...more >>

Integrating ASP page in existing FP web (VB.Net)
Posted by Grumpy Aero Guy at 9/30/2004 10:45:10 PM
My question: Can this asp page take on the theme of the FP web? If so, how? Could this blow up in my face? Is it possible? Am I missing something? (it looks kinda ugly... that white background an stuff) Thanks for your help -- Frank Bachman (Grumpy Aero Guy) ...more >>

MailMessage
Posted by Jul at 9/30/2004 8:59:07 PM
Hi, I use MailMessage class for create email. I specify such settings: mmEmail = New MailMessage mmEmail.To = ".." mmEmail.Body = "..." mmEmail.Subject = "..." mmEmail.BodyFormat = MailFormat.Text SmtpMail.SmtpServer = "..." SmtpMail.Send(mmEmail) when I get email send by such code, ...more >>

How to format values in datagrid/dataset
Posted by George Yachán at 9/30/2004 8:33:57 PM
I have added a new column to a typed dataset which displays an expression which is the result of one double (data type) field divided by another double field. I would like format this column to show the number as a whole number percentage, like 67 instead of as, say, .666666666667. Is there a ...more >>

How to auto-dialup?
Posted by yxq at 9/30/2004 8:09:31 PM
Hello, How to auto dialup using vb.net, are there some samples? Thank you ...more >>

Filling datagrid with data matching text input by user
Posted by Saket Mundra at 9/30/2004 7:55:02 PM
I have a Datagrid in which i want to dispaly only those rows that match the text specified by user in the text box.How do i do that ? How do i refresh the data in the Datagrid everytime the text is changed in the textbox. -- Thank You. Saket Mundra...more >>



Form1.Enable = True, but cannot set it back?
Posted by Jonathan at 9/30/2004 7:39:05 PM
Hi, I have 2 forms "Form1" & "Form2" In Form1, there is a button to click to open Form2 and set Form1.Enabled = False However, when i finish using Form2, i cannot Enable Form1? In Form2, i did something like: Dim f As new Form1 f.enabled = True Me.close( ) So it should Enable For...more >>

Load Targa file in VB.NET
Posted by sympatico at 9/30/2004 6:58:19 PM
The Bitmap object supports loading .bmp, .tiff. jpg ...etc files.. But it doesn't supports Targa images (.TGA). Any body has an idea how to do that in VB.NET? Thanx ...more >>

Data Grid shows (null)
Posted by Doug Bell at 9/30/2004 6:32:52 PM
Hi, I have created a data table that has records with value = Null. When I use a data grid it shows these values as (null). can I get it to display them like a zero length string? Thanks Doug ...more >>

unloading forms
Posted by Glenn at 9/30/2004 5:37:48 PM
I am confused about when a form is unloaded, if ever. I have forms loading as MDI forms that have a withevents reference to a global class raising events. When the forms close, the closed event fires, etc., but the raised event continues to be captured in the forms. The form is opened from a su...more >>

DataTable.NewRow problem
Posted by Steve Amey at 9/30/2004 5:34:49 PM
Hi All I have a DataTable that has the AutoIncrement properties set, but when I add a new row it doesn't use the values I'd expect and is causing an error. For example: MyTable.Columns("PKColumn").AutoIncrement = True MyTable.Columns("PKColumn").AutoIncrementSeed = -1 MyTable.Columns("PK...more >>

Datagrid / DatatableMax Records
Posted by TerryW
How to set datagrid's maxrecords Or How to set datatable maxrecords tia TerryW....more >>

Showing TIF-Images
Posted by shutter NO[at]SPAM swissonline.ch at 9/30/2004 5:00:37 PM
Hi My problem: I have TIF-Images single- and multipage and i want to show the images in a Picturebox in vb.net how can I load the tif-file in a picturebox and it's possible to show all pages from a multipage tif? Thank you Stefan ...more >>

Serializing a Color property
Posted by Tom at 9/30/2004 4:54:08 PM
I am having trouble serializing a color property. Basically, it is not serializing the value. For instance, in the following: <Serializable()> _ Public Class TestColor Private _MyColor As System.Drawing.Color = System.Drawing.Color.Red Public Property MyColor() As System.Drawing.Co...more >>

How to marshal C pointers to arrays in VB .NET
Posted by kevin at 9/30/2004 4:49:29 PM
Hi I have a C struct that is of the following typedef struct{ DWORD num_conversions; ... short *sample_values; .... } DSCAIOINT; In VB I'm doing the following <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi, Pack:=1)> _ Public Structure DSCAIOINT .... ...more >>

Dispose and Finalize - When to use
Posted by Dennis at 9/30/2004 4:35:02 PM
I have two questions; 1)When should one use Dispose on objects 2)Is the Finalize Overrides sub needed in classes and if so, when and why? Thanks for any clarification on these two items. -- Dennis in Houston...more >>

How to get the Process the Active Proces?
Posted by DraguVaso at 9/30/2004 4:25:08 PM
Hi, In my VB.NET-application I need to get the Process that is currently active on the screen of the user. I need it to get back to that application after that I brought mine to the front... for exemple: user types in Word... my application triggers an event, has to come to the foreground (...more >>

Raising keyboard events
Posted by DC at 9/30/2004 4:10:10 PM
Hi All, Is there any code snippet that shows how to raise keyboard events, for example, simulating the KEYDOWN event on key F5. Thanks, DC ...more >>

How to format a date?
Posted by ZippyV at 9/30/2004 3:53:41 PM
Hello everybody , I need to retrieve the month and the year of a given date. I need to have 2 digits for the month and the month, but I don't know how to format it. Can somebody give me an example? Thanks! ...more >>

screen resolutions
Posted by Brad at 9/30/2004 3:46:44 PM
I have a simple application that I am installing on a couple of different machines here at work. One small problem that I have run into and have not anticipated (being a "newbie") is sceren resolution. I program forms on my resolution of 1152 X 864. When I installed this on my supervisors P...more >>

Displaying SQL Images in ASP.NET pages
Posted by Lindsey Howell at 9/30/2004 3:33:15 PM
Hello, I've encountered a problem when trying to display BLOB images from a SQL database using VB.NET. This is the code which generates the error: Dim mySqlConnection As SqlConnection = New SqlConnection(connectionString) Dim mySqlCommand As SqlCommand = New ...more >>

WMI - Win32_Process - Commandline Problem
Posted by Christoph Borger at 9/30/2004 3:11:35 PM
Hello! I have wrote a windows service in vb.net. This service monitors the running processes with WMI and the Win32_Process class. Till last month all seems ok. But since the begin of september the service can't retrieve the commandline property of the processes. I think this is an result of ...more >>

Run application with a different user account.
Posted by kevinbronsdijk NO[at]SPAM hotmail.com at 9/30/2004 2:54:47 PM
Here is the story: The application performs different administrative tasks. But now users who aren't part of the administrators group have to perform these tasks as well. Just giving them the proper rights is not a secure solution. For example, we only want our users to create folders or files ...more >>

Custom Error Handling
Posted by Steve Amey at 9/30/2004 2:46:55 PM
Hi all I want to be able to throw a custom error up the call stack. I have looked around and it seems as though it's possible, but I can't get it to work :o( Below is some sample code. ------------------------------------------------------------ Public Class MainForm Public Sub Show Form...more >>

Monitoring windows service
Posted by Wally at 9/30/2004 2:46:01 PM
Hi Hi need to monitoring my windows service written in VB NET. How can my monitor application "feel" that my service has made something? Is the only way a polling (for example on a Db table)? Can't service generate events into monitor application? Where can I retrieve examples about monitorin...more >>

Possible bug combobox
Posted by Peter Proost at 9/30/2004 2:41:43 PM
Hi group could someone please confirm this behavior? Place a combobox on a form an add some items to it, then in the combobox_keyup event place the following code: combobox1.droppeddown = true When I then run the programma and type something in the combobox, my mouse becomes invisible on the e...more >>

Newbie: "dual" database connection
Posted by steve at 9/30/2004 2:31:21 PM
Hi, This is probably a stupid question but I have spent the whole day without being able to come up with a soliution. I want a way to give the user the choice of which database (SQL or Access) to connect to. It's basically the same database, created with Access and then ported to SQL server. ...more >>

Client port for SQL
Posted by Mark Lauser at 9/30/2004 2:29:06 PM
Hello, I'm running a vb.net Windows application that communicates with a SQL Server using SQLClient.SQLConnection. How do I specify the port on the client that should be used for this communication? I would like to have a setting in the application that will allow the user to change thi...more >>

Simple dimension statement question
Posted by Jordan at 9/30/2004 2:25:30 PM
I have the following dimension statement in a VB.NET subroutine: Dim x, y, z As Double Will x, y & z all be dimensioned as Doubles, or will x & z become a "System.Object" datatype? Thanks, Jordan ...more >>

copy array
Posted by Frank at 9/30/2004 2:21:20 PM
Hi, I have an array in a class When I make a copy of that class and copy the array from one class to the other the two arrays point to the same object: arr=arr => same object arr(0)=arr(0) ==> different objects How do I copy an array without copying all the arrayelements one by one? Thanks ...more >>

Get Name of Printer Driver
Posted by Alan at 9/30/2004 2:21:05 PM
How can I get the name of a printer driver from the printer name in VB .NET?...more >>

Problem with send mail
Posted by Sophie at 9/30/2004 1:46:48 PM
Hi, I'm not very good in english so excuse me if I have difficulty to explain my problem. I want to send a mail with VB.net with this code : Option Strict On Public Class Form1 Inherits System.Windows.Forms.Form Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As ...more >>

How do I resize a form
Posted by Dustin at 9/30/2004 1:35:55 PM
I would like to resize a form to it's maximum size, as if I hit the maximize button after it loads. How would I do this programatically in VB.NET? Thanks, Dustin...more >>

ErrorProvider and Grids
Posted by Woody Splawn at 9/30/2004 1:23:56 PM
Is it possible to make use of the ErrorProvider logic in a grid? ...more >>

DirectoryInfo.GetFiles is broken
Posted by Jonathan Allen at 9/30/2004 1:19:30 PM
MSDN> "The matching behavior of searchPattern when the extension is exactly three characters long is different from when the extension is more than three characters long. A searchPattern of exactly three characters returns files having an extension of three or more characters. A searchPattern of ...more >>

Need to break out of recursive function
Posted by Bill Borg at 9/30/2004 1:05:04 PM
Hello, I call a function recursively to find an item that exists *anywhere* down the chain. Let's say I find it five layers deep. Now I've got what I need and want to break out of that whole stack and continue execution at the point of the initial call. Is that possible? Thanks, Bill...more >>

Using a Listview to Populate a combo box
Posted by davemckie66 NO[at]SPAM yahoo.com at 9/30/2004 12:48:24 PM
Hi all I am trying to Populate a combo box from a selection in an adjacent Listview. The Listview lists as a string the field names of 4 different fields in tblFile. So far I can populate the combo box with the correct number of records(only 4 in the test database) but the data is the actual ...more >>

DropDown in Combobox
Posted by Claudio Di Flumeri at 9/30/2004 12:37:42 PM
When I click the arrow of a combobox, the list appears under the combo and the DropDown event is raised. If, at this point, I click somewhere in the form containing the combobox, the list disappears but the event is not raised. How can I know when this event happens? ...more >>

How detect Edit mode on a grid?
Posted by Woody Splawn at 9/30/2004 12:19:48 PM
I don't know what it's called when the little pencil shows up in the Row Selector portion of the grid but to me it indicates that the user is in edit mode. I would like to detect this condition because I have a Save button above a Grid, but I do not want it to be visible until the user has presse...more >>

Assign a DBNull to Optional parameter
Posted by Ed Chiu at 9/30/2004 12:15:07 PM
Hi, Is there a way to assign a DBNull value to an optional parameter of a function? I tried: Public Function AddUpdateCases( _ ByVal CrisCaseID As Integer, _ Optional ByVal APN As DateTime = System.DBNull.value) Doe not work for me. Thanks in Advance...more >>

Confused about dynamic VB Arrays and ReDim
Posted by Zenobia at 9/30/2004 11:50:58 AM
Hello, I want to keep a list references to database records being accessed. I will do this by storing the record keys in a list. The list must not contain duplicate keys. So I check the Contains property before adding. Question. Can I use an Array for this or should I use an ArrayList? ...more >>

Property Accessors w/diff Accessibility??
Posted by A Traveler at 9/30/2004 11:50:14 AM
Hello, I am wondering if this is possible: Code myself a nice class, say MyClass. Give it some property, say MyProp which has Public Readonly but Protected Write-ability. So it would be, in effect, something like this: Public Property MyProp() As Whatever Public Get Return pMyP...more >>

datagrid Get "F3" function
Posted by Agnes at 9/30/2004 11:48:33 AM
My purpose is When the user press "F3" in specified column, i need to put specified data in that column Now, I can get "F3" by using [Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean ] BUT I don't kno...more >>

Datagrid question
Posted by Scott Meddows at 9/30/2004 11:46:44 AM
I have a custom Datagrid that I want to do somthing with. When I resize a column I want a tooltip like box to come up and tell me the width of the column. Is that hard to do? Posted is the code for what I currently have. Thanks Scott Public Class MyDataGrid Inherits DataGrid ...more >>

Newbie: Autofill for ComboBox ?
Posted by steve at 9/30/2004 11:46:32 AM
Hi, I am wondering if I can easily reproduce the "autofill" effect in a combobox that i have populated from a dataset OR in general from a static list. I want to create the effect that when the user starts typing and the cmbBox automatically fills the *closest* match. I noticed that if i star...more >>

High performance UDP Listener?
Posted by gregory_may at 9/30/2004 10:35:32 AM
I am working on an application that needs a high performance UDP Listener. Currently I have one thread listening to the network and handling the requests. Currently I need about 70 MS between packets so I dont drop anything. I think I need one thread listening to the network and another t...more >>

Get width of menu item
Posted by at 9/30/2004 10:25:14 AM
Hi, I'm trying to right-align a context menu with its source control. Here's what I have to LEFT align it: '\\\ Dim pt As New Point(0, myButton.Height) myContextMenu.Show(myButton, pt) '/// It looks like I need the width of the context menu to get the correct point: Dim pt as New Point...more >>

Calling MS SQL's Query Designer to reformat SQL Statement?
Posted by Norton at 9/30/2004 9:48:18 AM
Hi all , i would like to make a small utility which allow me to reformat the sql statement from clipboard. I am finding ways which allow me to make use of MS SQL's Query Designer. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vdtsql/dvrefsqlpane.asp Do u know if there a...more >>


DevelopmentNow Blog