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 thursday march 3

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

Memory Management and GC
Posted by RG at 3/3/2005 10:42:53 PM
I am planning to write an explorer like SDI application utilizing ADO ..NET/ACCESS DB. There will be a number of different detail views (referencing and updating data on the db) depending on the selected tree node. I have tried creating multiple pannels and plant controls on them and show o...more >>


XML "ini"FIle - How to Detect a Missing Value
Posted by eBob.com at 3/3/2005 10:06:48 PM
I've got the basics of an XML ini file working. I.E. I can stash away and retrieve user preferences. (Code below.) But how do I handle a new preference? Say I have A and B. And then I invent C. The first time the new version with C is run the XML file will not have a value for C. How do I...more >>

setting the decimal variable to include 2 numbers after decimal point?
Posted by Scott at 3/3/2005 9:04:25 PM
How do I declare the decimal variable to include money... If want to use money and instead of vb.net displaying £32.2 I want it to display £32.20!!! How do I do this. cant find it anywhere??? Scott ...more >>

Win32API SystemParametersInfo in VB.NET
Posted by Shamil Salakhetdinov at 3/3/2005 8:44:17 PM
Hi All, I did try by myself and I did search on google but I can't find any info on how to use SystemParametersInfo Win32API in VB.NET Any useful samples, hints, tips & tricks will be greatly appreciated! TIA, Shamil -- Web: http://smsconsulting.spb.ru/shamil_s ...more >>

Is there alternative to AxWebBrowser?
Posted by MARTIN LANNY at 3/3/2005 8:05:05 PM
Is there alternative to AxWebBrowser? I spent one whole week trying to make AxWebBrowser refresh php page. It never works. I tried over 10-15 suggestions from Microsoft itself. Refresh just doesn't work. I tried to create AxWebBrowser programatically, but it throws exceptions when I want to ...more >>

byval & byref by god are drving me nuts
Posted by barrett bonden at 3/3/2005 6:06:23 PM
Is there any way to pass parameters to a function and simply know there will get there without the silly (C like ) complexity of worring about byval and or perhaps byref ? (Why bother to have two languages in the first place now ....silliness ; OOP taken to dysfunctional absurdity ! This i...more >>

Reading Object Property
Posted by Hon Yuen, Ng at 3/3/2005 5:42:22 PM
Hi: May i know if it is possible to retrieve the declared (public) property in a object without knowing the class type? I've seen a component doing similiar thing (DevExpress's XtraGrid). The grid can be populated by using a list of objects. Thanks in advance. From, Hon Yuen, Ng...more >>

Send text message to a form
Posted by Bill Nguyen at 3/3/2005 5:28:17 PM
I need to know how send text message to a dialog box/ form to show progress of a process running in background. An example would be helpful. Thanks Bill ...more >>



current date at run-time...
Posted by Scott at 3/3/2005 5:27:00 PM
I have a start date and an end date in my project that is defaulted to = the current date at run-time using the following code... Date1.Value =3D Now() Date2.Value =3D Now() I then have some code that works out the number of days between the 2 = dates as follows... Dim d1, d2 As Date ...more >>

Interdependent controls :TextBox
Posted by Paul-André_Côté at 3/3/2005 5:19:26 PM
Hi, I've been playing with VBx and VB.NET for a while now but ... Let say in VB.Net, I've never understood how or which event I should use when I update one of two interdependent textboxes. Let say I've 2 textbox : TB1 and TB2. TB2 depends sometimes of TB1. TB1 may be modified by ...more >>

Processing numeric keys (D0 - D9 and NumPad0 - NumPad9)
Posted by Dino Buljubasic at 3/3/2005 5:09:33 PM
Hi, Can somebody help me with this problem please. I need to get the value, not just to check for it, of a number pressed but it has to work for both, numbers above QUERTY and numbers entered from numeric pad. I know how to check for the keys (which I am doing in the code below). What...more >>

MS Access validation rules -- how to handle updates to datatable
Posted by Jeremy at 3/3/2005 4:55:56 PM
I have a vb .net 2003 app that uses access 2k as a backend. The main table has some validation rules (legacy stuff brought forward inadvertantly, and now we're stuck with 'em). The problem is, I do a dataadaptor.update, and an exception is thrown. I would prefer to validate before the upd...more >>

Create ASP.Net Page Programatically
Posted by Mythran at 3/3/2005 4:42:14 PM
I have 2 projects, a Web project and a Class Library project. In the class project, I have a class called Class1. Pseudo below: Class Class1 ... Public Static Sub Generate() If True ' Create Page and display to user. End If End Sub End Class ...more >>

Common practice, allowing null values in data classes.
Posted by D Witherspoon at 3/3/2005 4:32:51 PM
What is the accepted method of creating a data class or business rules object class with properties that will allow the returning of null values? For example... I have a class named CResults with the following properties. TestID int QuestionID int AnswerID int So, this is a simple examp...more >>

Why does this time out?
Posted by Brett at 3/3/2005 3:53:27 PM
If you paste the URL used in this code into a browser, it will render without errors. Running the code puts it in the Catch with a Time out error but not always. I have ran both (see link below also) links through Xenu with no errors. Any idea why the code produces errors? Dim st...more >>

Delete files
Posted by Marty at 3/3/2005 3:46:08 PM
Hi, In VB.NET, is there a similar way as in VB6 for deleting files? Dim fsoFileSystemObj Set fsoFileSystemObj = CreateObject("Scripting.FileSystemObject") fsoFileSystemObj.deleteFile (strFilePath) Thank you Marty...more >>

listview combined with treeview like interface
Posted by Brian Henry at 3/3/2005 3:33:21 PM
Does anyone know how to make a listview work like it does in outlook express for the newsgroups reader? the listview with the tree hiearchy? thanks! ...more >>

Reference the calling form.
Posted by William Oliveri at 3/3/2005 3:31:09 PM
Is there a way to reference a calling form and pass an object to it? This is what I'm trying to do: Form A creates new instance of Form B and then calls it modal. Form B creates a new instance of PersonalInfo class, makes a call to the db and fills that class Here's the tricky part: I ...more >>

Listview-like data grid?
Posted by Tales Normando at 3/3/2005 3:05:54 PM
Hi, Is there any data grid on the market that has an user interface more like the ListView control than that DataGrid one that comes with .NET? Freeware or cheap shareware suggestions are preferred. ...more >>

Dataview sort not working
Posted by Peter Proost at 3/3/2005 3:02:07 PM
Hi group, I've got this, a dataset which contains ds.tables(0).rows(0).item(0) = "HO" ds.tables(0).rows(1).item(0) = "L1" ds.tables(0).rows(2).item(0) = "L2" ds.tables(0).rows(3).item(0) = "O1" ds.tables(0).rows(3).item(0) = "BR" then I want to sort it using a dataview like this: Dim d...more >>

retrive data from listbox in a loop
Posted by Lal at 3/3/2005 2:27:02 PM
I have listbox with 10 items I selected 5 of them from the listbox i want to retrive the selected data in a for - loop command how can it possible please help me -- Regards Lal ...more >>

How can you set the system date/time with vb.net?
Posted by tahuya_rat at 3/3/2005 2:11:01 PM
Seems like it should be pretty simple to me, but I'm coming up short on answers. I'm not trying to find out how to sync to an atomic clock or anything like that, I just want to know the procedure for setting the date/time to whatever I may want. TIA -jim...more >>

Printing in VB .NET
Posted by Kevin at 3/3/2005 2:03:02 PM
Is it possible to initiate a form print (in response to a click event) without creating a Printing class? Is there no way inherent in the Forms.Form class to print something out? ...more >>

Can't have zero-length string in a database field?
Posted by johnb41 at 3/3/2005 1:58:36 PM
I have a simple form that has a bunch of textboxes that show data from a dataset table. When I "Add" a record with BindingManagerBase.AddNew(), all the textboxes go blank, so I can add a new record. If I leave a field totally blank, and then click the Update button (which uses the DataAdapt...more >>

Combobox problem
Posted by bertblockx NO[at]SPAM hotmail-dot-com.no-spam.invalid at 3/3/2005 1:48:08 PM
hello i got a little problem i hope someone can help me with it my program "Begin Program Code dim MainArray() as string {"Array1","Array2"} dim Array1() as string {"Array1Tes1","Array1Test2"} dim Array2() as string {"Array2Tes1","Array2Test2"} cboArrayloading.DataSource = MainArray...more >>

AxWebBrowser create / dispose problem.
Posted by MARTIN LANNY at 3/3/2005 1:44:38 PM
On button1 click I create a browser like this: Dim AxWebBrowser2 As New AxSHDocVw.AxWebBrowser Then I navigate to url... AxWebBrowser2.Navigate2(finalurl) Then dispose it... like this: Me.AxWebBrowser2.Dispose() Next time a press button1, it doesn't work... Gives me an error. How...more >>

Hook into browser download
Posted by Wes Jackson at 3/3/2005 1:28:43 PM
Anyone got any ideas how to hook into browser download like gozilla,etc So I can popup msgbox asking if want to download with other app. ...more >>

Dim frm As Form
Posted by Dib at 3/3/2005 1:21:28 PM
Hi, How can I call a form at run-time based on the value from a table. Dim frm as Form Dim sForm as String sForm = rs.Fields(1).Value frm.Name=sForm frm.Show() This is what I am doing. Is this wrong? What is the correct syntex. Thanks Dib ...more >>

Accessing class member variables - properties or variables?
Posted by dwok at 3/3/2005 1:12:28 PM
I have been wondering this for a while now. Suppose I have a class that contains some private member variables. How should I access the variables throughout the class? Should I use properties that expose the variables or is it OK to just access the variables directly? Keep in mind that I am tal...more >>

Return error codes from Sql Server
Posted by William Oliveri at 3/3/2005 12:33:18 PM
Hi all, I using Inline Sql statements to validate username and password against sql server. I want to catch any errors from Sql server such as Username not known, Password incorrect, etc. Is there anyway to do this? Below is the code I'm using: Dim oDR As SqlClient.SqlDataReader Dim...more >>

binary data through Socket
Posted by mike w. at 3/3/2005 12:25:07 PM
I've got a tcpClient and a tcpListener talking over a socket. How can I send binary data over the socket from one to the other? I've got a .jpg in a BinaryReader and I need to send the bytes over the socket to be rebuilt into a file on the other side. thanks mike w....more >>

vb.net + SQL 's store procedure
Posted by Agnes at 3/3/2005 12:10:41 PM
I run a simple SP in through my vb.net program. Does any way I can read the "execution Plan" ??? Or. I need to read it by using SQL anaylzer ?, thanks ...more >>

Is there any API function that can detect the silence or recording?
Posted by Sakharam Phapale at 3/3/2005 11:52:46 AM
Hi All, I am developing an application like sound recorder. While recording if there is a silence for more than given time (say 5 seconds), Recording should be paused. Is there any API function that can detect the silence or recording? Thanks in advance, Sakharam P...more >>

Convert Object to Byte array
Posted by Nikolay Petrov at 3/3/2005 11:45:21 AM
How can I convert variable of type Object to Byte array? TIA ...more >>

Take a pic from a cam with WIA
Posted by Nijazi Halimaji at 3/3/2005 11:05:52 AM
Hi everybody I saw some samples how to take a pci from a device, but they was written in C#, an I couldn't interpret it! My question. Do someone have a simple sample how to get a pic from a device with WIA in VB.NET? Thanks alot Nijazi Halimaji ...more >>

Download from a webpage
Posted by Nikolay Petrov at 3/3/2005 10:14:27 AM
how to initiate a file download from an asp .net page? thanks ...more >>

Textbox?
Posted by Nina at 3/3/2005 9:19:05 AM
Hi there, I’ve an input window, which has several Textboxes for user to input. For now user can use keyboard’s Tab key or mouse click to move cursor from one Textbox to the other. Is there a way that could allow user to use keyboard’s Enter key do that? Thanks in advance. Nina...more >>

what's the difference?
Posted by rodchar at 3/3/2005 9:13:02 AM
hey all, i have a simple datagrid app that if i leave up for an unknown specified amount of time (maybe 30min) and i try to click on it i get an error message saying "object not set to a reference" error. But if i'm on msdn's new group site, i can leave that up all day long and it will wo...more >>

comparing fields in 2 different instances of the same object
Posted by ECathell at 3/3/2005 8:28:46 AM
I have a class called products. In my maintenance application I am = instantiating two versions of this class. mProduct is used in all transactions and changes mProduct_original is loaded at the same time as the original mProduct is = instantiated. I would like to know if there is a simple ...more >>

Pick Random Number
Posted by TCORDON at 3/3/2005 8:27:11 AM
How can i tell VB.NET to pick a random number from a predefined series like: 10,10,10,38,38,17,17,17,17,92 TIA ...more >>

vb6 put,get for binary files in .Net
Posted by mike w. at 3/3/2005 7:59:07 AM
Hello, In VB6 there was Put and Get to write and read chunks of data from a file in binary mode. What is the way to do this in VB.net? thanks, mike w....more >>

Download binary data from WebService
Posted by Nikolay Petrov at 3/3/2005 7:58:40 AM
Any general ideas how to get binary data(files) from WebService to an ASP .NET app and then save it to client's machine? Thanks ...more >>

Dataset encryption
Posted by Anon at 3/3/2005 7:57:04 AM
I made this class to encrypt my DataSet before saving it to disk. So, first in the main program I write the DataSet to XML in a MemoryStream. I pass this stream to the E_File sub, which encrypts the stream and writes it out to the FileStream. Now, in the D_File function, I read the encr...more >>

Newbie Question: Firing an Event handler
Posted by Bruce A. Julseth at 3/3/2005 7:03:17 AM
SqlDataAdapter has the Event, RowUpdated. How do I set up a handler in my code for when it fires? I assume it would look something like, Private Sub da_RowUpdated(byVal sender as System.Object, ByVal e as SqlRowUpdatedEventArgs ) in my code. I don't know how to set it up. Thanks... ...more >>

maximize my application from the system tray
Posted by Geraldine Hobley at 3/3/2005 6:43:03 AM
Hello, I have an icon in my system tray and I wish to call various functions from withing the tray which involve the application been maximized. The following event is on the system tray icon Dim mouse As Cursor Dim Myprojectdet As New frmProjectDetails If...more >>

just wondering if possible
Posted by rodchar at 3/3/2005 6:25:04 AM
hey all, i'm using method webclient.filedownload to automatically download a file from an internet site. that works great. well i was wondering if there was a way to monitor or check if that file has changed since the last time it was downloaded? thanks, rodchar...more >>

Read XML from a File Using VB.net
Posted by BobC at 3/3/2005 5:31:04 AM
Article ID: 301225 I can't seem to get this code to work. I modified it alittle so I could try and figure out the exception. I keep getting an error on the " Do While (reader.Read()) " statement. I'm using the books.xml file MS supplies for the sample code. Am I that far off in left field??? o...more >>

Couldn't see scrollbar in PocketPC application
Posted by Rosy Woods via DotNetMonster.com at 3/3/2005 2:56:47 AM
Hi, I am writing a PocketPC application using VB .NET. I created 4 tabpages (ex. page1, page2, page3 and page4) in a form. There are lot of textboxes in each page. When I open the app in PocketPC emulator, I see only page1. It looks like I have to force the scrollbar but not sure how to do tha...more >>

syncfusion dll reference problem
Posted by ksskumar2000 NO[at]SPAM gmail.com at 3/3/2005 1:28:44 AM
Hi, Even I referred Syncfusion.Tools.dll in my project, while I compiling I got the following error message. 'AnimationDelayInMilliSeconds' is declared in project 'Syncfusion.Tools.dll', which is not referenced by project 'Inventory.WinApp.dll'. What could be the problem? kumar ...more >>

Scroll in Datagrid with mousewheel
Posted by Marcel Sengers at 3/3/2005 12:51:02 AM
Hi folks. I have a problem with a Datatgrid. When my User selects a row in the Datagrid he is able to scroll through the Grid by using the Mousewheel. The prob is that when the selectedrow is scrolled out of the grid u cannot use the mousewheel to scroll anymore. Does anyone know zhis prob...more >>

KeyEventArgs
Posted by Dino Buljubasic at 3/3/2005 12:14:22 AM
can somebody help me please with this simple problem? I have combo box with numbers for months in it and want user to be able to select a month Say 3 (for March) simply by clicking a number either from the top row of keyboard or from numeric keypad. So far I got this work for the top row (...more >>


DevelopmentNow Blog