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 > january 2004 > threads for friday january 16

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

Simple memory usage question
Posted by M O J O at 1/16/2004 8:59:23 PM
Hi, A simple question... This is just an example ... Say I have a class (MyClass) that has only few variables (let's say 10 strings) but many-many-many subs and fuctions, so many subs and functions that they take up 10k of memory. The subs and fuctions creates no new variables. Here's...more >>


Need best practice on winform components
Posted by M O J O at 1/16/2004 8:03:33 PM
Hi, I need a lillte guidance on how to create a simple component and put in in the toolbox. Here's how I've done so far, please let me know if there's a better aproach (I have some question to this aproach later in this post).... 1) I open Vs.net. 2) I create a new "Windows Control L...more >>

Access Dynamically created controls on a Form?
Posted by D Hass at 1/16/2004 7:45:31 PM
Radio Buttons are added to my form During the Load event, the quantity determined by User input. They are placed in pairs on groupboxes with code like this: (edited a bit for brevity) Public Function LayoutForm(ByVal intNumber As Integer) Dim intCount As Integer Panel1.Contro...more >>

Binding, Format, Parse...Not able to edit
Posted by Slonocode at 1/16/2004 7:05:21 PM
I have some textboxes bound to an access db. I wanted to format the textboxes that displayed currency and date info so I did the following: Dim WithEvents oBidAmt As Binding oBidAmt = New Binding("Text", Me.Ds1, "Items.BidAmt") txtBidAmt.DataBindings.Add(oBidAmt) Private Sub oBidAmt_Form...more >>

Killing all threads.
Posted by Bob Day at 1/16/2004 6:54:19 PM
VS 2003, vb.net ... Is there an easy way to kill from the main form all threads running ? Is there a thread collection to iterate through to kill each one? I know each thread's name, so could I kill it via the name? The trick is I am not in any of these threads I am trying to kill. None of...more >>

drive types in VB.NET
Posted by SStory at 1/16/2004 6:03:23 PM
Hi, I am building an explorer type interface for file selection Need to know how to determine what type of device a DRIVE is i.e. C: (harddisk) A: (floppy) E: (cd-rom) F: (zip) h: (network) etc. I have found no such animal in .NET runtime. Is there a managed way to do...more >>

Appending to the Clipboard
Posted by Didymus at 1/16/2004 5:46:53 PM
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I have the following: cmbBook cmbChapter cmbVerse rtbText When I fill rtbText, (according to the selections made in the ComboBoxes), how can I append cmbBook.Text, cmbChapter.Text, and cmbVerse.Text after rtbText is filled with ...more >>

Public properties vs. public variables
Posted by Webster at 1/16/2004 5:22:32 PM
Hello, Just wondering what's better programming style; to use public variables in a class or to use private/protected variables and then expose them via properties? For example: -------------------------------- Public Class public_person Public firstname As String Public lastna...more >>



Rasied Events traverse the call stack until handled
Posted by Bob Day at 1/16/2004 5:21:27 PM
Using vs 2003, vb.net It is not clear from the documentation, but it appears that a raised event will traverse up the call stack upwards until it reaches its handler. Is this correct? See the code snippet below. The event raised in sub1 or class three will be caught in Class1 event handler...more >>

Splash screen
Posted by xhenxhe at 1/16/2004 4:55:41 PM
Anyone know of any how-to's on creating splash screens? -- Dustin -- http://www.LDSPDA.com http://www.Shiblon.com ...more >>

dataset name
Posted by Bob Day at 1/16/2004 4:53:18 PM
Using vs2003, vb net. Why does DS>DataSetName return the base name DS_Caller_Base instead of the instantiated Name of DataSet1? See '**** for the line in question. Friend sub1 ' instantiate new dataset dim DataSet1 as new DS_Caller_Base ' pass new dataset to sub2 ...more >>

Gac and applications.....???
Posted by Anthony Nystrom at 1/16/2004 4:12:27 PM
Do I need to reg my assemblies with the gac to distribute my application... My app seems so run fine whether they are registered or not... As long as they are in the app dir it works fine... What's the rule? What's the recommendation....? I know in dev I register my strong name assemblies but fo...more >>

Processes & Process Start Info arguments....
Posted by Sam Marrocco at 1/16/2004 4:09:03 PM
I'm using a ProcessStartInfo object to provide command line information to a process for execution as follows: Dim PSI as new ProcessStartInfo PSI.Filename MyApp.exe PSI.Arguments -blah -blah Dim MyProcess as new Process MyProcess.StartInfo=PSI MyProcess.Start It appears that the entire...more >>

Adding a combobox to a Datagrid column
Posted by Ed Willis at 1/16/2004 3:28:01 PM
How do you add a combobox to a Datagrid column? Thanks ...more >>

Odd breakpoint behaviour ?
Posted by One Handed Man [ OHM# ] at 1/16/2004 3:14:20 PM
Pressing Button2 does cause the breakpoint shown in Button1's handler = to be active the first time. After stopping the program and restarting = it it break as soon as you start Button1, Any ideas what I might be doing wrong ? --=20 Best Regards - OHM O_H_M{at}BTInternet{dot}com -----...more >>

accessing Frames in a VB ASP.NET application
Posted by David Brewster at 1/16/2004 3:06:41 PM
Hey everyone. I am just getting into .NET (2003) now - I've been working in VB6 for some time now, so my question may seem pretty low level for some - but bare with me ok? I have a form with 2 frames in it "Contents", "Main", and "Header". Along the side frame (Contents), I have a navigation t...more >>

Dropdownlist not working
Posted by Binod Nair at 1/16/2004 2:50:49 PM
Hi All, This is what I am trying to do.I have an aspx page with the the following code block. <asp:DropDownList id="DropDownList1" runat="server" DataSource="<%# GetUsers%>" DataTextField="user_email" DataValueField="user_id"> </asp:DropDownList> GetUsers is defined in the .vb file...more >>

not or <>?
Posted by kerberoz at 1/16/2004 2:45:45 PM
which is faster? If strMessage <> String.Empty Then End If or If Not strMessage Is Nothing Then End If ...more >>

pictureboxes
Posted by Will at 1/16/2004 2:41:05 PM
By default the picturebox is a square. Is there anyway to make it a circle, or any other shape Peace Out....more >>

Question about access keys
Posted by Fay Yocum at 1/16/2004 2:40:26 PM
Why don't the underlines show up on access keys until someone presses the Alt key once. Is there any way to make it show up when the program is started? We can't expect the user to be smart enough to press the Alt key to display the underlines. Fay ...more >>

downLoadFile Issue
Posted by IntraRELY at 1/16/2004 2:30:07 PM
I have a loop that loops through this sub. However, I recieve an WebException error in my try statement. "An exception occurred during a WebClient request." This message doesnt happen when I am only looping throught the sub once, however when I process multiple records, I recieve this error for ...more >>

Accessing Forms Auth Cookie from WinForm
Posted by IntraRELY at 1/16/2004 1:34:00 PM
I have an WinForm (VB.NET) that is launched from an ASP.NET page that uses Form Authentication. After the WinForm is lauched it calls a web service. I want to use the credentials stored in the cookie and authenticate them on the web service side. Is there a way to access the information? TIA, ...more >>

IE Temporary Internet Files
Posted by IntraRELY at 1/16/2004 1:30:07 PM
I need to access this directory, but changes based on the differant profile for the user. Is there a way to access the current users "Temporary Internet Files" w/o using something like "C:\Documents and Settings\UName\Local Settings\Temporary Internet Files" Also this is going to be differant ...more >>

Please Settle This Issue....(URGENT)
Posted by scorpion53061 at 1/16/2004 1:04:40 PM
in my head...... I need my application to work with Office 97, 2000, XP and 2003 versions of MS Word and MS Excel. IN order to acomplish this I have to install in different folders: 1. remove my Office 2003 2. Install Office 97 Word and Excel 3. Install Office 2000 Word and Excel 4. Ins...more >>

GDI+ throws error when animated gif in picturebox
Posted by Ger at 1/16/2004 12:12:26 PM
I have a form with a panel (Panel1) in which I dynamically create picturebox controls. Works like a dream with static pictures, but not when the picturebox.image is an animated gif. GDI+ throws the following error in this case: "An unhandled exception of type 'System.Runtime.InteropServices.E...more >>

Update command
Posted by Nathan at 1/16/2004 11:14:17 AM
Hi, I want to change a field in a database directly using an update command, not by changing a dataset first and then updating. I'm trying to use a command similar to this: updCommand.CommandText = "UPDATE CurTable SET CurField = '92' WHERE ID = 64" adptestresults.update(MyDataSet.MyTable)...more >>

icon visible in started form but not in win. explorer
Posted by Jurgen Oerlemans at 1/16/2004 10:43:12 AM
Hello, I'm sure this must be an easy one for most people: I made a program (vb .net) with one form. I changed the icon property to a nice icon. * When I start the exe file the icon is displayed correctly. * in the windows explorer the exe file is displayed with the default .exe "icon". ...more >>

Copy and Paste Files to and from the Clipboard
Posted by DraguVaso at 1/16/2004 10:28:55 AM
Hi, I'm looking for a way to Copy and Paste Files to the clipboard. I found a lot of articles to copy pieces of text and bitmaps etc, but nog whole files. Whay I need is like you have in windows explorer: when you do a right-click on a file and choose Copy, and than paste it somewhere in my...more >>

clicked links event - ie embedded in .net application
Posted by larry mckay at 1/16/2004 10:14:11 AM
hi, thanks for your help in advance i've embedded internet explorer in a vb.net application and can navigate to a page using webrowser1.navigate myurl the webrowser control is actually being controlled by the vb.net windows form application. i would like to capture the NAME of the link as...more >>

VB.NET application on Citrix?
Posted by David Schwartz at 1/16/2004 10:01:45 AM
Are there any issues with running a VB.NET windows forms application in a Citrix environment? Thanks! ...more >>

get csv from the web
Posted by blarfoc NO[at]SPAM yahoo.com at 1/16/2004 9:53:30 AM
hello! i will need to write a client application that will download a csv file from a http url like this http://www.web.com/file.csv once the file is downloaded i will be importing it into a sql server database table. how do i make a vb.net program download this file and save it to my hard...more >>

Focus on the New Instance of Row in the Grid
Posted by Mark Vergara at 1/16/2004 9:33:46 AM
Hello, Somebody help on this. I have my Data Grid, and I want to focus on the last row of the grid cell let say for example I have my New button for my Adding a new record private sub btnNew_Click(Byval sender as object, Byval e as System.EventArgs) CurrencyManager.AddNew mygrid....more >>

Select Case Not Catching Decimal Type
Posted by Kyle Novak at 1/16/2004 9:25:35 AM
Okay, so I have the chunk of code below which is trying to determine the value of a decimal. No matter what I do, none of the case statements are entered. I've tried several different formats of the "Case dTotal > 0D" such as... -Case (dTotal > 0) -Case dTotal > 0D -Case dTotal > 0.0 -Cas...more >>

Apostrophes in database field
Posted by Nathan at 1/16/2004 7:28:07 AM
Hi, I'm doing a database app using MS Access and OleDb adapters, and I'm having trouble with getting strings containing apostrophes in and out of the database. I read through a thread below with subject "Apostrophys in text field - SQL Server as backend" and now I'm trying to figure out how t...more >>

MDI Application - some weird stuff
Posted by BradC at 1/16/2004 7:10:33 AM
I have an MDI parent application with several forms inside it. As the user switches between forms, I am forcing a maximize to keep it filling up the parent window. When the user has one particular form displayed, sometimes the screen really gets messed up. It gets into this weird mode where t...more >>

Scrolling a form to a particular point...
Posted by BradC at 1/16/2004 7:05:11 AM
I have a long VB.NET form with a scrollbar (autoscroll=true, not an actual scrollbar control). In response to one particular buttonclick, I need to scroll down to a particular point on the form, and I can't figure out how to do it! Nothing I try seems to work. Just in case it matters, it is a...more >>

How whould I structure a DBNull statement in a single line???
Posted by Aaron Ackerman at 1/16/2004 6:59:21 AM
I want to be able to do the following in a single line. newDataSetRow.AdditionalHours = if IsDBNull(vdsPublisherLocal.Tables("CaseInstance").Rows(i).Item("AdditionalHo urs")) then 0 end if if the value is null I want to put a valid value in place of the dataset field, how can i do this?...more >>

populating a treeview with a lot of records
Posted by Patrick McGuire at 1/16/2004 6:51:05 AM
I have a treeview control on a windows form that I want to populate in the form's load event. The problem is that the datatable I am using to populate it contains >20,000 records, and it takes > 1 min to load the form. How can I populate it partially during load and then complete it when the user ...more >>

Datagrid Tab out With SelectNextControl
Posted by Stan Sainte-Rose at 1/16/2004 6:00:13 AM
I still have a problem using the datagrid with my Class when I press the Tab Key. I add this condition If msg.wparam.ToInt32()=Cint(Keys.tab) Then MyBase.SelectNextControl(Me, True, True, True, True) Return true End If I catch the Tab but it doesn't move to the next control. Any he...more >>

Class Question
Posted by Stan Sainte-Rose at 1/16/2004 3:36:46 AM
Hi, I thank everybody who helps me on my previous post.. It works :-) So, I would like understand something about the class concept. I create a Class for the datagrid called DataGridEnter. So when I design a datagrid into my winform, the code is generated in the #Region with this syntax ...more >>

how do i connect vb.net to sql server
Posted by sandhya_b_nair NO[at]SPAM yahoo-dot-com.no-spam.invalid at 1/16/2004 3:17:58 AM
hi, can u tell how do i connect vb.net application to sql server 2000 regards Posted Via Usenet.com Premium Usenet Newsgroup Services ---------------------------------------------------------- ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY ** ---------------------------------------...more >>

KeyPress event and e.KeyChar
Posted by barry_flinter NO[at]SPAM yahoo.co.uk at 1/16/2004 1:18:44 AM
Hi All, In VB6, I had text boxes which, in I wanted to allow numeric data only. To do this, I put some code in the KeyPress event of the control, and if the key that was entered was outside the range of 0-9, then I reset the KeyAscii prperty to 0. Thus: Private Sub tTransactionAmount_KeyPre...more >>

VB.NET and Fonts
Posted by barry_flinter NO[at]SPAM yahoo.co.uk at 1/16/2004 1:07:49 AM
Hi All, I have a list box control, and I want to set the display font to Terminal. However, in the Font property of the object, Terminal is not one of the available fonts, even though Terminal is a font that is installed under Windows. How can I make Terminal available for my .NET controls? D...more >>

validating a textbox
Posted by Robert Smith at 1/16/2004 12:56:10 AM
Hello, I have a text box called txtOrder and I wish to validate the entry that the user enters into it. The txtOrder_validated event deals with this validation when the user presses enter and inputting data. However if the user enters a value and just clicks on another form for example w...more >>

Assigning keys
Posted by John at 1/16/2004 12:28:02 AM
Hi Is there a way to assign Esc key to an action say closing a form dialog? Regards ...more >>

Using ErrorProvider
Posted by M O J O at 1/16/2004 12:04:37 AM
Hi, How do I check if an ErrorProvider has errors? Take for example this code... (err = ErrorProvider...) Public Sub Test If TextBox1.Text= "" Then err.SetError(TextBox1, "Error1'.") End If If TextBox2.Text= "" Then err.Set...more >>


DevelopmentNow Blog