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 > march 2004 > threads for tuesday march 9

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

Terminate Running Program
Posted by Alan at 3/9/2004 10:40:25 PM
Dear all, I use VB.net and a form contain a Button called "START" and a button called "QUIT". After I press the START button, I have a procedure to run, it may run lots of time. I want to press the QUIT button to terminate all the running processes. However, I use APPLICATION.EXIT. The prog...more >>


Can't control tabpage order on tabcontrol - CF
Posted by Dave Nasralla at 3/9/2004 10:36:10 PM
Hi. I have a PPC application written in VB .NET. My problem is that the tab page order is unpredictable. No matter what order I put the tab pages in on the tab control, they move around whenever I deploy or quit and relaunch Visual Studio. Is there any kind of work around? Should I try modifying the...more >>

Add ListView items
Posted by Matteo at 3/9/2004 10:27:30 PM
I am kinda new to VB.NET so please bear with me. I am working on a project that accesses a database and returns an arrayList of strings. I am then supposed to parse the string into separate strings that hold pieces of information. Now I am supposed to take those pieces of information and p...more >>

Reading a datagrid in VB.Net
Posted by DellaCroce at 3/9/2004 10:24:36 PM
This is going to be very simple for some you. I have a form with a datagrid bound to a database. The user is to select a row and I need to show all the associated detail records from several other table. OK, the easy part is getting the details from the tables. The part I am unsure of (and...more >>

Web browser
Posted by Sueffel at 3/9/2004 9:33:30 PM
Okay, so, in VB6 we had that lovely InternetControl that we could use to make a webbrowserr with. I had usued it to display web pages on my forms. Well, I'm looking for the same thing under .NET, but, it seems I have to use the ActiveX InternetControl I used inder VB6. Well, ActiveX is now on m...more >>

Process.Start() redirecting output
Posted by ryan_pinky NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/9/2004 8:40:22 PM
Hi, I had the following code which works fine: Public Function RunConsole(ByVal txtBox As System.Windows.Forms.TextBox) Dim p As New Process p.StartInfo.FileName = "ping.exe" p.StartInfo.Arguments = "10.0.0.69" p.StartInfo.UseShellExecute = False ...more >>

load forms
Posted by Amr Elshazly at 3/9/2004 8:31:06 PM
i have form1 and form2 and button1 .... i want when i press button1 form 2 sho and i don't know how i...more >>

Files and folders question
Posted by jy836 at 3/9/2004 8:25:30 PM
What is the easiest way to find all directories, subdirectories, and files in a specified folder? (The files in all the subdirectories should be included as well, as well as all subdirectories of subdirectories of....well, you get the picture :-D). Thanks. ...more >>



Gurus, can you please take a peek at my IOleItemContainer wrapper?
Posted by Robin Tucker at 3/9/2004 6:57:54 PM
I'm trying to implement an IOleItemContainer wrapper and have written the following (below) code to do it. Sometimes I get confused about my byval's and byref's however. Anyway, the method I am trying to call ( GetObject) fails with a "A null reference pointer was passed to the stub." message. ...more >>

New to Dot Net
Posted by Sébastien Côté at 3/9/2004 6:42:26 PM
Hi everybody! I'm about migrate from VB6 to .Net, and i'd like to know exactly what are the benefits (real ones) and how i may "import" my old projects. I know there's many web sites on this, but i want opinion of people who switch from VB6 on large projects... Please forgive my poor englis...more >>

How to show a CheckBox in a DataGrid
Posted by Tor Inge Rislaa at 3/9/2004 5:57:10 PM
How to show a CheckBox in a DataGrid If I just map a table of a dataset to my datagrid, Boolean values in the table are shown as a checkbox. But if I add a TableStyle with GridColumnStyle for the columns in the table, the Boolean values are shown as true or false. How is it possible to show th...more >>

How to call shared method from VB6?
Posted by John Vottero at 3/9/2004 5:37:01 PM
Is there a way to call a shared method from VB6? I have used regasm to register my .NET assembly so I can access it from VB6 but, I can't figure out how to call a shared method. Thanks, John Vottero ...more >>

How to release Excel97 in VS.net 2003
Posted by Arron at 3/9/2004 5:07:12 PM
After the following code is finished,I open the Task manager,but the excel.exe is still running. How can I release it from memory. ps.I use vs.net 2003 + excel97 Thank you!! Dim oExcel As Object Dim oBook As Object Dim oSheet As Object oExcel = CreateObject("...more >>

Converting to Date
Posted by Atley at 3/9/2004 3:02:59 PM
I have a field in a database that contains dates in the following format: 20040205 It is a text field and I need to convert it to a date so I can compare and control a dataset. Any suggestions would be greatly appreciated... I have tried to use GetDate(20040205), but it just gives me an ...more >>

OwnerDrawn Listbox data bound
Posted by Brian Henry at 3/9/2004 2:55:35 PM
Here is my problem.. I have a owner drawn list box, I also have it data bound. I want to use the display member as the text I draw in the box, and still return the value member like a normal data bound list box. How do i get the display member text to draw on the listbox? I have tried a few wa...more >>

Error handling
Posted by Joachim at 3/9/2004 2:36:07 PM
Hi In Try-Catch we can trap the error in run-time with err.number or err.description But some errors like "File not exist", "Device not ready", ect... are taken over by the system before come into Try-Catch I have a code like this ----------- 1. If OpenFileDialog1.ShowDialog() = DialogResu...more >>

Dispose and 'With' blocks
Posted by Paul at 3/9/2004 1:52:48 PM
Hi, I think I remember reading somewhere that if you use a With block as below, then the call to Dispose in the Finally block is completely redundant because Dispose will be called by the system when the End With is reached. Can anyone confirm this, or otherwise? With New SqlCommand() Tr...more >>

Change TextBox Cursor?
Posted by Will Arrowsmith at 3/9/2004 1:28:38 PM
Using vb.net is there any way of changing the flashing cursor in a TextBox control to being a block cursor? Thanx very much in advance for help. Will Arrowsmith ...more >>

Stupid Question
Posted by CJ Taylor at 3/9/2004 1:02:29 PM
Alright, Bring on the flames What is pascal case? I think I know it, but after an argument today, I quesiton myself and want to get the answer from some people. Thanks, CJ ...more >>

help with a regular expression
Posted by ToddT at 3/9/2004 12:34:13 PM
how would set up a regular expression that is 10 digits in length and can not start with 1948, 9903, and 5631? thx. ...more >>

Copying Open/Locked Files?
Posted by qaz_guy NO[at]SPAM yahoo.com at 3/9/2004 12:27:24 PM
Hello, I'm attempting to write a specialized backup application for several servers in our company. I know that commerical backup applications (ArcServe, Veritas) either natively permit the backing up of open/locked files, or they offer it as an option. Is it possible to reproduce this func...more >>

CLR error 80004005
Posted by David Schwartz at 3/9/2004 12:19:11 PM
I have a user getting the error "CLR error 80004005 - the program will now terminate". Any ideas what could cause this error upon application startup? Thanks! ...more >>

Is there code to get web visitors IP address?
Posted by Trint Smith at 3/9/2004 11:45:35 AM
Is there code to get web visitors IP address? I only want to know how far our website reaches... Any help is appreciated. Thanks, Trint .Net programmer trintsmith@hotmail.com *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for ...more >>

Dumb question on Iterating over Collections
Posted by google NO[at]SPAM qwirk.net at 3/9/2004 11:23:35 AM
I know you can't modify the objects of a collection when iterating over them. So what's the standard practice for deleting all the items in a collection? I've got a collection with a bunch of objects that all have a function delete() that deletes the object and cleans up a bunch of stuff. I w...more >>

Using a Single Connection across forms
Posted by Chester Grice at 3/9/2004 11:14:05 AM
I need to know how, if possible, to use one connection on several different forms as well as reusing data adapter from another form. it seems wasteful to keep adding connector and adapters to every form. VB.Net 2003. Will a module be helpful, if so, how *** Sent via Developersdex http://ww...more >>

Changing layout of Chart in Crystal Reports 9 dynamically from VB.NET code.
Posted by vadim.kuznetsov NO[at]SPAM mercom.com at 3/9/2004 11:05:24 AM
Hi All, Is anyone know how to change (if it's posible) a layout of Chart (for example from vertical rectangles to horizontal) in Crystal Reports 9 dynamically from the code of VB.NET-written application, in which we use CrystalReportViewer9? Thank you in advance! Vadim...more >>

How to access files in a folder
Posted by Chris at 3/9/2004 10:41:06 AM
Hi, How can I access files in a folder? Where canI find Information on this? Thanks...more >>

How to make an Exe-file from VB .NET
Posted by hglamy at 3/9/2004 10:35:40 AM
Hello there, making my first migration steps from VB6, I can't find a way / a command (in VS 2002) to produce an executable application out of a VB .NET project. Can anybody help ? Kind regards, H.G. Lamy ...more >>

How to run one Application from another Application?
Posted by RH at 3/9/2004 10:33:30 AM
Hi, I have a windows application that has a button. When this button is clicked, I want it to cause another windows application to run. Any help on how to do this would be appreciated. Thanks. ...more >>

Cannot initialize OleDbDataReader object
Posted by Jeremy Doucet at 3/9/2004 10:31:06 AM
When stepping thru the code of this app, it will jump completely over the line that delcares the data reader object.. Does anyone know why Dim myConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=c:\todo.mdb Dim myCommand As New OleDbCommand( Dim m...more >>

VB.NET and SQL
Posted by Pepehammer at 3/9/2004 10:04:58 AM
Hi there guys! i'm using this query in VB.NET: Dim sSQLFirstAvailable As String = _ "SELECT TOP 1 * " & _ "FROM Mi_Table "& _ "WHERE Status IN (0,3) AND WTN > '" & sLastWTN & "' " & _ "ORDER BY WTN" This query it's used in a multi user program, BUT in the same moment 2 ...more >>

Bind Form to Class to Dataset?
Posted by Jim Coyne at 3/9/2004 9:57:31 AM
I'm new to vb.net and need some help. I have to rewrite an application that used VB6 COM objects in the middle tier for business rules and database operations. They weren't really bound to anything (my understanding is binding was a nightmare to attempt when this was written back around 2000), ...more >>

dataAdapter
Posted by mike at 3/9/2004 9:51:07 AM
Hi I am using a datagrid to display information from a table. I have successfully been able to select items and make the values appear in different textboxes on the form. I would like to be able to select a value and the click a command button and delete the corresponding record. When I load th...more >>

Class Question
Posted by johntear NO[at]SPAM hotmail.com at 3/9/2004 9:48:20 AM
Hi all Quick nice and easy question for all you OOP gurus! I am looking to design a class which inherits most of its functionality from the socket class (what I as an old VB6 programmer would call the winsock control). I want to use the socket class but I also want to store information suc...more >>

Debugging a thread
Posted by news.microsoft.com at 3/9/2004 9:42:17 AM
Hello, I am learning how to use threads and in the process learning how to debug them as well. I have created a thread that runs a stored procedure which takes about 20 minutes to run, which is why I want to use a thread. I start the thread and I see it added to the thread list. While I am ...more >>

run vbscript from vb.net code
Posted by Josh at 3/9/2004 8:57:53 AM
How can I run vbscript code from vb.net code? In particular I want to run ExecutGlobal to exexute some vbscript that is read from a file, and then run that vbscript functions in the script to test them from my vb.net program. TIA Josh ...more >>

EnableVisualStyles and Windows 2000
Posted by PaulM at 3/9/2004 8:25:33 AM
Is EnableVisualStyles only for on WindowsXP? Does it work on Windows 2000? Thanks ...more >>

Crystal Report Logon Fehler
Posted by Frank Jelinek at 3/9/2004 8:16:23 AM
Hallo zusammen, ich arbeite mit einer Oracle DB und möchte einen Report erstellen. nachdem ich den Report an den Viewer gebunden habe und das Programm starte, wird mir ein Logon Fehler vorgeworfen. Dim rep As New CrystalReport1 rep.SetDatabaseLogon("user", "pwd", "Server", "DB") Me.C...more >>

Accelerator keys for button controls
Posted by Ian at 3/9/2004 7:51:10 AM
I have a problem with accelerator keys for button controls on my vb.net project (Windows forms) Accelerator shortcuts (ampersand) in .text property do not seem to work with Button controls. They appear to work OK, however, with textboxes. With buttons, when running the application the underlined c...more >>

Comments in a RichTextBox
Posted by genojoe at 3/9/2004 7:41:10 AM
I want to include a comment in an rtf file and save it through vb.net. My problem is that the comment will not save. Details follow I referenced http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec.as to find a way to add a comment in an RTF file. Below is an...more >>

Parsing (if that is the right word) through a directory.
Posted by Kardon Coupé {Aka Paul} at 3/9/2004 6:58:37 AM
Here is the deal, I would like to examine a folder containing files, read each file name, read the first two bytes of the file, convert the two bytes into hex, so if the two bytes where 01 08, the hex returned would be 0801, then add $ (becoming $0801) and adding this to the beginning of the fil...more >>

Database Designer / Query Builder
Posted by michaelt NO[at]SPAM microplus.co-dot-uk.no-spam.invalid at 3/9/2004 6:40:19 AM
Hi I would like to create as part of my application a screen where users can join existing database tables however I am having a problem in working out how to draw the link between the two. I dont know if I should use a listbox or datagrid and how to give the user this functunality. I would a...more >>

Can't format datagrid programically
Posted by mike at 3/9/2004 6:31:07 AM
I have been trying for days to format the datagrid programmically. Me.SqlDataAdapter1.Fill(Me.DataSet11 Dim tablestyle As New DataGridTableStyl tablestyle.MappingName = "keywords Dim column As New DataGridTextBoxColum column.MappingName = "Keyword ...more >>

Running a .NET exe accross a Network (Repost)
Posted by Gerry at 3/9/2004 5:51:09 AM
I was told that there is a program called caspol.exe which allows you to change the trust levels so that users from one PC can run an exe situated on another (networked) However I am unclear as to how I can set this u Essentially I have an exe called Test.exe - how do I use the Caspol.exe progr...more >>

wildcards in rowfilter
Posted by anandsaha NO[at]SPAM rediffmail.com at 3/9/2004 5:22:14 AM
hi, can i use wildcards like '%' and '*' in a datetime field in dataview.rowfilter? if at all, how ? pointers to comprehensive webpages would also be fine. anand --...more >>

Vb.NET Form from VB6 -> Tab problem
Posted by saxman NO[at]SPAM markus-tschoep.de at 3/9/2004 4:18:19 AM
Hi everyone, I have a problem with the behaviour of the tab key when showing a .NET form from a visual basic 6 application. The tab key works probably if I show the .NET form with .ShowDialog() and you can jump from one textbox to the other. But if I show it with ..Show() there?s no result (e...more >>

Help with regional settings in VB.net
Posted by my_melody83 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/9/2004 3:40:20 AM
Hi.. Can someone help me with the regional settings?? For example: a Label, i set the Text to "Hello"... I want to ma ke it in such a way that if i change the language settings to France, the label's text will auto change to "Hello in France".. Can anyone tell me where and how do i save the ...more >>

Compilation queries using vbc with regards to namespaces
Posted by noreply NO[at]SPAM samuelhon.co.uk at 3/9/2004 3:13:15 AM
Hi I'm using the vbc compiler and I'm trying to reorganise my Namespaces according to the bit in here: http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=336 Basically, it suggests that you create a new directory for each Namespace and nest them as necessary with each class i...more >>


DevelopmentNow Blog