Groups | Blog | Home


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

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

Filling a listbox with collection items
Posted by Petter L at 3/7/2005 11:48:50 PM
I have set up a test program on how to use colletions saved and loaded from a file. It was a part of a other program until this happends. The saving process working fine but it looks like something goes wrong in the read and refill the listbox. Say there is three items listed in the file. It ...more >>


Debug.Writeline
Posted by kd at 3/7/2005 10:29:06 PM
Hi All, This question may sound very silly....anyway, here is goes! Where can one see the output of Debug.Writeline? Thanks. kd...more >>

Slow and generic feeling.
Posted by Dimsion at 3/7/2005 8:50:51 PM
Hi everyone, I have been using VB5/VB6 and loving it but since my upgrade/new installation to VS.net 2003 and even the new VB.net 2005 beta 1. The GUI design is very slow and generic looking. Every time I read any post on any of these product, no one seem to have this issue so I was wonder...more >>

Scope of an Imports statement
Posted by Howard Kaikow at 3/7/2005 7:14:16 PM
I was doing some testing of the effect of Option Strict on particular Word VBA statements. So I created a Form, the events of which called Subs in separate Modules. Each Module is in a separate file so I can have a different Option Strict in each. I then noticed that I had to include an ide...more >>

Windows Service with com port
Posted by ValK at 3/7/2005 7:03:05 PM
Hello All, I need to write VB.NET application as Windows Service with the following functions: - the Windows Service shall be able to scan and receive data via serial port - the received data from serial port to be saved in the text files. Is anybody can advice the proper way to do it? Th...more >>

Highlighting word in string
Posted by Kuups at 3/7/2005 5:17:37 PM
Hello there, How can I highlight the particular word in a string w/o using any of the event just using the code itself just like for example.. The big brown fox.. Just want to highlight the word "brown" .. How can I do this on the code? Hope you can help me on this. Thanks!!! ...more >>

[Is nothing ] questiom
Posted by Agnes at 3/7/2005 5:03:59 PM
I need to detect an object first. If it is not nothing... clear the dataset. However, Does there is any "is not nothing" function ?? Thanks If Me.pObjdaResultSet Is Nothing Then Else dsMasterCompany.Clear() endif ...more >>

Load DLL only when needed
Posted by Jarod_24 at 3/7/2005 4:56:19 PM
For my Application i have created 3-4 different forms that can be used as the user interface for the program. The user specifies which one he/she wants to use in a ini-file and then my code will create an instance of that form. Currently all the forms are placed in a "Forms" project inside the p...more >>



Upgrade problem - help required
Posted by Martin Horn at 3/7/2005 4:43:21 PM
Hi, I am upgrading a VB6 project that used a stdPicture and passed it's handle property to a DirectX 7 API function. VB .net doesn't support the stdPicture and advises using system.drawing.image as an alternative, but the .net image control doesn't have a handle property. I have worke...more >>

Highlight text in string
Posted by Kuups at 3/7/2005 4:15:34 PM
Hello there, How can I highlight the partical word in a string w/o using any of the event just the code itself just like for example.. The big brown fox.. Just want to highlight the word brown. How can I do this on the code? Hope u can help me on this. Thanks!!! ...more >>

Automatic line numbering crazyness
Posted by Ben at 3/7/2005 4:10:14 PM
Hello all After years of playing developing stuff for fun and personal use I'm finally developing an app that I am intending to sell. As such, I'm trying to make it as reliable and stable as possible and also ensuring that it fails gracefully. So, I'm trying to use the Erl property of th...more >>

Enum but with values?
Posted by UJ at 3/7/2005 4:03:58 PM
I know how to define enums, and they work great. But is there any way to define the same time of thing but give them actual values? For instance, I'd like to define something with the idea like this: Public Enum TMCContentStatus as string PrevApproved = "P" ToBeAdded =...more >>

Creating a combobox column in a datagrid
Posted by pbrunes NO[at]SPAM gmail-dot-com.no-spam.invalid at 3/7/2005 3:37:27 PM
hi! How can I create a combobox column in a datagrid? I downloaded an example where I copied a reference and added it to my own project. It worked out great, but it's only a trial of a datagridcolumns assembly for MS VS.NET from RustemSoft, and therefore some features are read only. Sin...more >>

Remote Database ?
Posted by Arsalan at 3/7/2005 2:45:55 PM
Suppose I have Access Database file on a remote server, How do I use DataAdapter to connect to this ? What will be the connection string ? Brief example would be helpful. ...more >>

Listbox Multicolumn Vs Datagrid
Posted by zoneal NO[at]SPAM yahoo.com at 3/7/2005 2:30:44 PM
Hi I have a form with a listbox, two comboboxes and two Radiobuttons. What I want to do is make a selection from both comboboxes and either Radiobutton and display these three elements across the top of the listbox eg. 5, 10, 'Go' As I need multiple rows of data I have a button to 'Load' this ...more >>

question about checkboxes
Posted by Brad at 3/7/2005 2:24:33 PM
I have about ten checkboxes in a group box and there are about five different types of group boxes on a form. Why will this not work? // For Each c As CheckBox In gbAGD1.Controls If c.Checked = True Then agFlag = True Next \\ I get a cast error. What I want to do is instead of ...more >>

Strange function name in DLL-file
Posted by magnus NO[at]SPAM stolpe-dot-info.no-spam.invalid at 3/7/2005 1:51:38 PM
Hi! I try to do this: Declare Function X_InitHardware Lib "X_Com.dll" () As Boolean and then call this function, then I got this error: Unable to find an entry point named X_InitHardware in DLL X_Com.dll. I used Dependency Walker and turned off the "Undecorate C++ functions" option a...more >>

IDE can't run in debug mode?
Posted by Marty at 3/7/2005 1:23:50 PM
Hi, I can't press on the start button in my IDE because it is frosted. I don't understand why. Does anyone already got it? Thank you Marty...more >>

Select statements
Posted by Newbie at 3/7/2005 12:51:04 PM
Hello! I am converting 2 Select statements written in VB ASP into C# ASP.NET. Please help. Set rsPPO = Server.CreateObject("ADODB.Recordset") sPPO = "SELECT a.line_no, a.loc_no, a.qty_ord, a.po_no, a.unit_price, a.tot_qty_rec, " _ & " to_char(a.last_rec_date,'mm/dd/yyyy') last_rec_date,...more >>

How to set the default value to nothing when using the dropdownlis
Posted by Eduardo78 at 3/7/2005 12:29:05 PM
I would like to set the default value of a combobox to "nothing" or spaces when my form loads. I am using the dropdown list property becasue i want the end-user to select only values listed in the combobox. Also keeping the property that when a user enters a letter the cursor goes to the reco...more >>

toolbarbutton and dropdown style
Posted by Ahmed at 3/7/2005 12:23:43 PM
Hi everyone, Is there a way to add a toolbarbutton with dropdown menu similar to the mail button in IE? In another word, when the chevron is part of the button not beside it. Thanks Ahmed ...more >>

ASC and ASCW
Posted by Vic at 3/7/2005 12:05:02 PM
Do we have the visual basic.Net equivalent for ASC and ASCW or do I have to reference the Microsoft.VisualBasic.Strings ?? Thanks, Vic ...more >>

Print pdf document from vb .net application
Posted by Sameer Parekh at 3/7/2005 12:01:54 PM
Hello everyone, We are automating a paper based process and hence need to print certain pdf documents through our VB .Net Application. Any ideas how that can be done? Thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded fo...more >>

Extracting Links from a Document
Posted by John Seeliger at 3/7/2005 11:54:06 AM
I am pretty new to VB, so please forgive the simplistic question. This is using VB .NET Standard 2003. My form has three objects on it: a TextBox named URL, a Button named Extract and a WebBrowser named AxWebBrowser1. The goal is to have the user enter a URL in the TextBox and then hit th...more >>

DataTable AutoNumber Seed
Posted by Nitin at 3/7/2005 11:43:10 AM
I have a field in a DataTable with its AutoIncrementSeed = 1 and and AutoIncrement='True' when I remove all the rows from the Table how can I reset the Autonumber field's seed to 1 so that it forgets its previous autonumber value and starts fresh from 1 Regards, Nitin ...more >>

Almost embarrarased to ask this string manipulation question....
Posted by Darious Snell at 3/7/2005 11:36:19 AM
I am looking for an elegant way to return just the directory part of a string that represents a fully qualified path to a file. Example: MyString = c:\MyDir\Mydir2\Mydir3\Myfile1.txt I want to return just c:\MyDir\Mydir2\Mydir3 Thanks! ...more >>

connection string to connect access database from VB
Posted by vigneshwaran G via DotNetMonster.com at 3/7/2005 11:36:13 AM
Hi , I am trying ot connect a VB application to Access database. iam using the following connection string : con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;data source=c:\ windows\desktop\ex1.mdb;Persist Security Info=False" it worked where the access file is in the local syst...more >>

VB.NET MapAndLoad alternative
Posted by Nick at 3/7/2005 11:22:01 AM
Hi there, I'm using MapAndLoad in C++ to acquire some information from an executable, I would like to use this in VB.NET too, although I'm not surfe how I would do this, is there an API available? Thanks loads in advance. -- Nick Pateman ------------------------------------------...more >>

Using Global / Session variables in a Windows Forms application
Posted by sandy NO[at]SPAM murdocks.on.ca at 3/7/2005 10:28:14 AM
My background is web based. I am attempting to write a Windows application and I am finding some simple things difficult. Currently I am trying to find out how to store information session wide. In the web you have session state and you can add variables or objects to it. They remain in exista...more >>

Vb.net Windows Service with Automatic Updates
Posted by Blaxer at 3/7/2005 10:09:10 AM
I have read approximately 30 articles now on various methods to make your vb.net application automatically update itself and I can't see how they apply to a vb.net windows services projects. The goal of the project is to write a windows service in vb.net that runs on many workstations that can...more >>

Setting default time in DateTime Picker
Posted by Randy Fraser at 3/7/2005 9:56:35 AM
Hi Any one know how to Set the default time to 12:00 AM when a user selects a new date from the calender on a datetime picker? Best Regards Randy ...more >>

ComboBox - Alternative coloured rows, like a datagrid
Posted by Dave Prouten at 3/7/2005 9:11:03 AM
Hi all, Is it possible to have alternative coloured rows in a ComboBox? If so please can some one point me in the right direction. Thanks in advance Dave...more >>

Drap Drop Question
Posted by pmclinn at 3/7/2005 9:02:27 AM
Does anyone have some sample code that would show me how to drag and ..doc or exe file to a drop target and then extract the file path on drop? ...more >>

datagrid & KeyUp event
Posted by Peter_Fastré at 3/7/2005 8:56:06 AM
hello I have an ordinary datagrid in a vb.net application which displays products. I used the keyup-event to show a dialogform where product information can be edited. This works ok. But if the user then presses enter to save the changes in this dialogform, the keyup-event of the datagrid...more >>

Generic Exception Handling Code
Posted by dhussong at 3/7/2005 8:23:11 AM
I'm trying to implement a generic exception handling routine that will write information to a text file at the time the exception occurred. I am using the Microsoft Application Block for Exception Handling to write to a text file. This is working great plus I get the call stack which is an add...more >>

Create Linked Table
Posted by Wayne Wengert at 3/7/2005 7:40:02 AM
I am trying to create a VB.NET Windows application to move some data from a local Access DB table to a table in a SQL Server. The approach I am trying is to open an OLEDB connection to the local Access DB and then add a Linked Table pointing to the table on the SQL Server and then run an "Insert ...more >>

Context Menu for PictureBoxes
Posted by lgbjr at 3/7/2005 7:37:50 AM
Hello All, I have several Pictureboxes (linked to an AccessDB) on a VB.NET form. I would like to use a context menu to allow the user to open the picture in their default picture viewer or editor. I'd like to use the same default viewer/editor and open with... choices that are present on th...more >>

Audio/sound line-in detection
Posted by juky at 3/7/2005 6:51:53 AM
Hi all, I have an audio device connected to my computer through line-in. At not regular base the device send audio signal to the line-in. Now, what I need to do is to write an application in VB.NET to monitor the line-in and in the presence of analog signal I have to call some other functions...more >>

Send email using System.Web.Mail.MailMessage saved in "Sent Items"
Posted by JohnB at 3/7/2005 6:49:04 AM
hi I am using System.Web.Mail.MailMessage to send email. Is there any way to keep the email to "Sent Items" Folder?? I use Microsoft Outlook as my email tool. Thanks...more >>

Read data between parent and child form
Posted by kevininstructor NO[at]SPAM state.or.us at 3/7/2005 6:27:27 AM
I have a ListBox on the main form, in the child form when accessing items I get an error message "Object reference not set to an instance of an object." here is the code in the child form. Is there something I am missing i.e. setting the reference to the main form to access ListBox items? Publ...more >>

Getting the total and free amount of RAM
Posted by schwortschik NO[at]SPAM gmx-dot-de.no-spam.invalid at 3/7/2005 5:49:30 AM
Hi there! I want my VB.NET-program to determine the total amount and free amount of RAM (system memory). How can I do that? I suppose with WMI, but I don't know which "tables" to query... Can anybody help me?? Thanks! RobinSword Posted Via Usenet.com Premium Usenet Newsgroup Servi...more >>

Master Detail with textbox and datagrid
Posted by Bruno at 3/7/2005 4:31:05 AM
Hello friends I want to create one master-detail form with a textbox and a datagrid, where I can put the id of one client on the text box and see his orders on the datagrid. I can create this form using one listbox and a datagrid, but I cannot create this form using a textbox instead of l...more >>

Detect usb drive and his name
Posted by ladal NO[at]SPAM hotmail.fr at 3/7/2005 4:04:33 AM
Hi I just want to know how do I detect an usb drive when it's plug and retrieve his name, in vb.net Thanx...more >>

Tough question on faxing using VB.Net
Posted by Brad at 3/7/2005 3:15:02 AM
Hiya, I need to write a VB.net app to fax purchase orders out of an ERP database. What we do is: 1. In the ERP system, create the purchase order and print it to a PDF document/file 2. Open a fax cover sheet in Word and fill in the supplier details 3. Fax cover sheet and attached PDF via th...more >>

How to retrive data from Access file?
Posted by drexelterry NO[at]SPAM aol.com at 3/7/2005 1:53:51 AM
Any .dll or COM+ for .Net can help me retrive data from a Access file? The table contain several columns and the last one is a container which I store Article; because each article is a little bit huge, so when I store it, it ask me if I want to pack it (the article) into a object then I click '...more >>

VS.Net Networking with Access Database
Posted by punt at 3/7/2005 1:24:35 AM
At Uni last year we created a VS.NET application which connected to access database on a single machine, with a full install program. My question is does this system work well for a networked application, so for example I would install the program on a couple of machines(only about 2-6) then the...more >>

Problem With XML Serialization
Posted by Amiram Korach at 3/7/2005 12:17:03 AM
I try to serialize a simpley array: Dim arr() As Integer = {1, 2, 3, 4} Dim tmpStream As New IO.FileStream("C:\str.xml", IO.FileMode.Create) tmpSerializer = New XmlSerializer(GetType(Integer())) tmpSerializer.Serialize(tmpStream, arr) arr = tmpSer...more >>


DevelopmentNow Blog