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 > february 2004 > threads for wednesday february 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

How to access web page for download
Posted by Gary Owsiany at 2/4/2004 9:46:49 PM
I am building a new aggregator (using windows desktop forms, not web pages) and would like to allow the user to download an rss source from the web by entering the URL. Do I use an HttpRequest object? If so, any examples of doing an HTTP Get? Thanks, Gary ...more >>

Color Number Storage
Posted by Brad at 2/4/2004 8:26:05 PM
Hello All I have run into a bit or frustration. I am trying to save a color into a sql database. I thought that I could just save the result of color.ToArgb but the result I get (-8323200) dosn't work when I use color.fromArgb(-8323200 I figured this would be the best way to save color informati...more >>

thread error
Posted by Snuyt at 2/4/2004 7:25:36 PM
When I add a control to a panel, I get this error : "Controls created on one thread cannot be parented to a control on a different thread." Does anyone knows what I'm doing wrong ? Dim p As New PictureBox() p.Image = New Bitmap("pics/" + k.getUniCode.ToString + ".bmp") p.SetBounds...more >>

dynamically add controls
Posted by Snuyt at 2/4/2004 7:02:49 PM
Hello, I want to add some PictureBoxes to a panel in my form. Therefore, I use: Dim p As New PictureBox() p.Image = New Bitmap("pic.bmp") p.SetBounds(10, 10, 50, 50) Panel.Controls.Add(p) This works quite well, except for this thing : the pictureboxes that are added, appear below e...more >>

GotFocus vs MouseDown events
Posted by James Wong at 2/4/2004 6:57:00 PM
Hi! everybody, I want my control to have different behavior if it got focus by mouse click from by keyboard (i.e. Tab or Shift-Tab). I found that GotFocus event always comes before MouseDown even the I click the control directly. My problem is that I don't know whether I should do something...more >>

Determine Framework version from assembly
Posted by Scott at 2/4/2004 5:46:37 PM
Does anyone know of a way to get the .NET Framework version that's required by a specified assembly. I have a program I've written that creates a Windows Installer setup for any application. However, for many of the programs I work with there are a lot of files that have come from other develope...more >>

Checked Listbox help needed
Posted by alex at 2/4/2004 4:22:07 PM
Hi, is there a way to a) dissable a particular item in the checked listbox. i.e. I dont want users to change its state b) to change the font color/property of one item in the checked list box. Thanks a lot Alex ...more >>

Who knows the .Net equivalent of the Val() function?
Posted by Mike Wengler at 2/4/2004 4:03:04 PM
I inherited some code from a former employee, who was unable to cut the umbilical cord from VB6. His code is littered with calls to VB6 functions like Space(), String(), Left(), Mid(), Right(), Len(), Val(), etc. I know the .Net equivalents of everything except Val(). Int32.Parse allows you...more >>



Enumerating Network Shares
Posted by Glenn Leifheit at 2/4/2004 3:22:47 PM
Does anyone have any sample code on enumerating network shares with vb.net. I here you need to use wither an API or WMI, or are there other recomendations. Thanks Glenn ...more >>

E&xit Program vb.Net
Posted by lumpierbritches NO[at]SPAM aol.com at 2/4/2004 3:21:43 PM
What is the syntax for closing a VB.Net Program..I've tried UnloadMe, Exit etc. Thank you in advance. Michael...more >>

Books on User/Custom Controls?
Posted by Troy at 2/4/2004 3:16:07 PM
Best books on writing controls? Looking for User/Custom controls and coding for the IDE as well thanks troy...more >>

Keyboard assignments
Posted by Jon Cosby at 2/4/2004 3:09:14 PM
I'm trying to assign keys to a textbox. I've added a handler just for that control. When I hit the keys, though, the values are entered in the active textbox, not the one they're assigned to. Why is this? Public Sub New() MyBase.New() 'This call is required by the Windo...more >>

Convert Byte Array to Array of Singles?
Posted by elziko at 2/4/2004 3:08:56 PM
I have a file which, at a certain point, contains 40000 bytes. I need to go through these bytes and for each four bytes I need to create a singles ending up with 10000 singles. This is how I'm doing it: For i = 0 To 39999 fsNCodeFile.Read(arrBytes, 0, 4) sngValue = BitConverter.ToS...more >>

ANN: Doc-O-Matic 3.7 released - Source Documentation System
Posted by Markus Spoettl (toolsfactory) at 2/4/2004 3:07:13 PM
http://www.doc-o-matic.com http://www.doc-o-matic.com/download.shtml RENO, Nevada, -- February 2004 -- toolsfactory announces the release of Doc-O-Matic 3.7, a free update for its popular documentation system which comes with new features and fixes problems of the previous version. For a deta...more >>

EnableVisualStyles and DoEvents
Posted by Lance at 2/4/2004 3:06:09 PM
I've noticed that calling DoEvents is much slower in an application that has called Application.EnableVisualStyles in Sub Main. Furthermore, the performance seems to worsen each time that DoEvents is called. To demonstrate what I'm experiencing, create an app with a Sub Main, a Main Form, and a ...more >>

file.move very slow
Posted by matt NO[at]SPAM enotechnologies.com at 2/4/2004 2:43:34 PM
I have a problem where I'm developing some code that moves files from one place to another (on the same drive) with the destination file having a new name. What's happening is that the line of code where I do the file.move is taking a very long time (in the order of around 7 seconds for a simp...more >>

VB.Net inheriting from C# Class
Posted by Steve W at 2/4/2004 2:21:48 PM
We are integrating some of our software with another company's software. They use C#, we use VB.Net. We need to inherit from one of their objects in order to change one of the methods so that it uses some of our code. Should this be possible ? If so does anyone know of any examples etc ? ...more >>

2 or more forms
Posted by Will at 2/4/2004 2:21:08 PM
Hey guys, i have two forms, Form1 and Form2. There is a text box on Form1. Form2 is shown by clicking a button on Form1. how do i change the value of the textbox on Form1 from form2 ??? (PS. i'm using Form2.Show()) NEED CODE PLEASE THANX IN ADVANCE...more >>

VB.Net inheriting from C# Class
Posted by Steve W at 2/4/2004 2:17:35 PM
We are integrating some of our software with another company's software. They use C#, we use VB.Net. We need to inherit from one of their objects in order to change one of the methods so that it uses some of our code. Should this be possible ? If so does anyone know of any examples etc ? ...more >>

Font Size in Text box
Posted by Jonesgj at 2/4/2004 1:33:44 PM
Hi all, Simple one I'm sure... How can I change the size of font used in textbox at runtime? Jonesgj ...more >>

show a new control outside of its parent
Posted by Milosz - [playseven.com] at 2/4/2004 1:13:21 PM
I am programming a control for the CF, and i need to make something like the ComboBox enroll behavior. If you click on it. it should enroll another item, for example a picturebox. To enroll it down, it could be possible to define the picture box inside the control, and on cliking the control t...more >>

Databinding and a Typed Collection
Posted by solex at 2/4/2004 1:12:03 PM
Hello All, I have a type collection I created that inherits from System.Collection.CollectionBase. I use this collection as a datasource for a combo box. I notice that when I add items to this collection that the combo box is not updated. I would prefer it is automatically updated, is the...more >>

Creating an SMTP Gateway
Posted by Andre Boyle at 2/4/2004 12:52:05 PM
Hi all, Does anyone have any experience of creating an SMTP gateway service using DotNet and preferrably VB.NET. I'm having real trouble finding any resources which might help give me some direction. Any advice or hints appreciated. Dre ...more >>

Crystal Reports/.Net question
Posted by MJ at 2/4/2004 12:38:48 PM
Does anyone know if an app written in vb.net utilizing Crystal reports engine (CrystalDecisions.CrystalReports.Engine)will cause any sort of conflict with other applications that utilize CR 8.5? We have had problems in the past with dll conflicts with different versions of CR....more >>

My owner draw list box contorl doesn't "invalidate" old selected items!
Posted by Robin Tucker at 2/4/2004 12:26:28 PM
Hi ppl, My owner draw list box controls do not "refresh" old selected items when a new selection is made. This means that as you click to make selections, the previously selected items stay highlighted along with the new ones too. It draws correctly when I minimize the window and then maximi...more >>

Databinding Problems
Posted by Ed Willis at 2/4/2004 11:31:02 AM
I have a combobox that I have the selectedvalue bound to a dataset column. The combobox will not show the selectedvalue. How can I fix this? ...more >>

Wildcard String Search
Posted by Cliff at 2/4/2004 11:04:00 AM
Hello I'm trying to search for each instance of a string (using wildcards) in = another string. I know there is the Like operator, but it seems to be = work with booleans and I want to define a string variable. I tried strPdfFileName =3D strPdfFileName Like "########.pdf" I'm sure there's...more >>

Draw a line between 2 list boxes using drag and drop...
Posted by murl NO[at]SPAM cbsmemphis.com at 2/4/2004 10:59:09 AM
Im starting on a application that will map fields from an excel file to fields of a sql table for a very small integration project. I have enabled drag and drop on the source listbox, and the form inbetween the 2 listboxes so i can tell when im dragging over the form. Im stuck on when i dragente...more >>

Date Return if selected a weeknumber from a year, eg, Wk 20. Help..Anyone??
Posted by Vanessa at 2/4/2004 10:57:12 AM
Does anyone know whether when I select a weeknumber of a certain year, eg. 2004, the date from first day to the last day of the week will be known. Regards Vanessa ...more >>

Form from a Main Menu
Posted by Elena at 2/4/2004 10:56:07 AM
I have a form with a main menu. From that menu, I want to select another form. I have the code behind it, yet when the form appears it's blank. It is not the one I've created This is the code Private Sub MenuItem3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuIt...more >>

SaveFileDialog problem
Posted by Robert Schwortschik at 2/4/2004 9:55:56 AM
Hi there! I've got a problem with the SaveFileDialog. In my program, the user must be able to choose a directory where he has no writing rights (the rights are handled by the program later). Now I've already set the property "CheckPathExists" to False in order to prevent that this error mes...more >>

errorhandling with resume next...
Posted by Paul M at 2/4/2004 9:47:45 AM
Hi there, i'm upgrading a vb project to .net, and have places in code where i've used "On error goto errorHandler", and in the errorhandler i perform whatever then do a "Resume Next" I want to replace all these with the Try/Catch/Finally handler, but dont know how to use somethling like a r...more >>

How do you save the contents of a Listbox?
Posted by Joe Fallon at 2/4/2004 9:18:17 AM
I need to save the contents of a listbox in a serializable object. I not only need the values but the index positions as well. For example, a listbox with 3 entries may look like this: Index Value 0 x 1 y 2 z What should I store these in? (An array, has...more >>

Missing double quote after string - HELP!
Posted by teddysnips NO[at]SPAM hotmail.com at 2/4/2004 8:59:05 AM
My function to populate fields on a form from a collection: Private Sub cbfSetUpAddresses(ByVal pcolAddress As Collection) Line 1 Me.txtAddress1.Text = pcolAddress(1).ToString Line 2 Me.txtAddress2.Text = pcolAddress(2).ToString Line 3 Me.txtAddress3.Text = pcolAddress(3).ToSt...more >>

Try Catch Quesiton Again
Posted by Woody Splawn at 2/4/2004 8:51:07 AM
In a message yesterday titled Try Catch Question I got numerous responses. Thank you to all. After all the smoke clears I guess the question is where to place the Return True statement in the block of code below that is part of a function. Should it be at the end of the try block, as dipicted b...more >>

Callbacks in VB.NET for DirectoryInfo.GetFiles
Posted by Tom Scales at 2/4/2004 7:57:33 AM
OK, I admit, I am not a VB.NET expert and am still learning, but have run into an annoying problem. I'm writing a program that has to search the file system and therefore processes large numbers of directories and files. I've figured out DirectoryInfo (it's pretty simple), but when I invoke Dir...more >>

Converting an unserializeable object to a byte array
Posted by Mark Rae at 2/4/2004 7:46:13 AM
Hi, Can anyone please tell me how to convert an unserializeable object say, a System.Web.Mail.MailMessage object, to a byte array and then convert the byte array to a Base64 string? Any assistance gratefully received. Best regards, Mark Rae ...more >>

Export Data to Spreadsheet
Posted by OptikConnex at 2/4/2004 7:46:06 AM
I have data that I need to either put in a spreadsheet, or use in a listview to view it. I would rather use the listview but I don't understand how to put my data into it. Here is the code I have, currently I am just display all the data in a label and it sucks. Private Sub btnGetDoubles_Click(ByVa...more >>

Enter replace Tab?
Posted by Mike Chan at 2/4/2004 7:38:34 AM
Can I make the program when user press "Enter" which will act as "Tab" go to next control? ...more >>

Web form error
Posted by Taishi at 2/4/2004 7:29:05 AM
Windows Pro VS.Net ..Net Framework ASP.NET My 1st time using Web Forms in .Net I am receiving the following error: System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in database 'master'. Could not attach database 'pubs' to file 'D:\Program Files\Microsoft SQL Server\M...more >>

Help with delegate addressOf
Posted by john at 2/4/2004 6:42:31 AM
Hello, I am trying to convert from vb6 to vb.net and I have an issue with the addressOf function. Below is the code any help would be greatly appreciated. Thanks in advance. code erroring here 'UPGRADE_WARNING: Add a delegate for AddressOf ViewFinderCallbackFunc Click for more: 'ms-hel...more >>

Data Entry form problem
Posted by ajw at 2/4/2004 6:23:36 AM
I am a VB.NET newbie... I have a data entry form with text boxes bound to a dataset. The data source is an Access table with the primary key field being an autoincrement field. Everything works fine except adding a new record. When I use the following code, the dataset count is incremented but t...more >>

Expose overloaded constructors in Access2003
Posted by Vera at 2/4/2004 6:11:06 AM
I built a class in VB.NET that has an overloaded constructor. It can either accept nothing, a string or an object Public Sub New( MyBase.New( End Su Public Sub New(ByVal strName As String MyBase.New( '... Do init with strNam End Su Public Sub New(ByVal oObj As MyObjClass MyBase.N...more >>

Get Information about Forms
Posted by y1799 NO[at]SPAM yahoo.com at 2/4/2004 5:27:07 AM
Hi, Can I NOT from Form class get information about form's properties, control located on the form , etc? I would like to do it from any module at my project . Thanks...more >>

how to read a file, that has already been opened for writing?
Posted by Alex Sidorov at 2/4/2004 4:12:27 AM
for example, one application is writing some binary data to a file, and I need to read the data at the same time. I tried to use FileGet and BinaryReader, but they all say "End Of File" when I call them, meanwhile the size of the file to read from is not zero. ...more >>

Images do not display after applying visual style
Posted by Tim Joyner at 2/4/2004 3:55:05 AM
I am using the EnableVisualStyle command to apply visual style to my program. After using this command and starting the main form, the images that I have assigned to controls such as the toolbar and treeview control do not display. The text shows up, but no image. Has any one else seen this ...more >>

Enums with spaces VB.NET
Posted by Will at 2/4/2004 3:51:05 AM
Hi In VB6 you could declare and enumeration with spaces using the [enu value] type syntax I am now trying to implement an enum in VB.NET using this syntax and am having an issue Public Enum myEnu EnumWithoutSpace [Enum With Spaces End Enu Private Sub (ByVal a As myEnum Sel...more >>

Assembly Version Number Generation
Posted by Wayne P. at 2/4/2004 3:25:27 AM
I am currently allowing VS to generate my build and revision numbers: <Assembly: AssemblyVersion("1.0.*")> I'm curious what logic is used for the generation of the build and revision numbers - are they random, or seeded on CPU clock? Thanks! Wayne P. ...more >>

odd problem with a file my app is creating. Stays 'in use'
Posted by AussieRules at 2/4/2004 2:50:22 AM
Hi, I have a process that writes an image file out to disk. I reuse the same file name over and over, as there is only every one file required. THe problem is that when this code executes for the second time, the file.delete errors with The process cannot access the file 'file' becuase it i...more >>

Dynamically sized tabular display
Posted by teddysnips NO[at]SPAM hotmail.com at 2/4/2004 2:31:21 AM
ASP.NET SQL Server 2k Our clients need to output a pretty complicated Consignment/Delivery Note from their system. It is in tabular form, but each row can have a) a different number of columns, and b) cells of varying width and height. I can mimic this in both Word and Access, and using eit...more >>


DevelopmentNow Blog