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 2006 > threads for thursday february 2

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

Release Memory
Posted by S Shulman at 2/2/2006 6:57:27 PM
Hi I am looking for ways to reduce memory consumption by the VB.NET program. I use a spell checker that consume too much memory and when it doesn't work I set it to Nothing, I then call the Garbage Collector GC.Collect but it doesn't seem to help Any suggestions? Thank you, Shmuel Sh...more >>

Saving a Database to Disk
Posted by Jager at 2/2/2006 6:27:55 PM
Ok, I've got a program I am working on that is supposed to save all changes to the dataset to the actual database, but this doesn't seem to be working. I used the DataAdapter.Update(DataSet) method, but that doesn't save the changes to my actual database. How can I go about updating the actual...more >>

VS2005-VB Viewing 'Main' for MDIParent
Posted by Jon at 2/2/2006 6:06:55 PM
I have been reading the digital manual to find out how I can see the "main" procedure and I find this line under "Main Procedure" in the documentation: "Windows Forms applications run on their own. However, the Visual Basic compiler automatically generates a Main procedure in such an application,...more >>

Windows Form Application Help
Posted by neilphan NO[at]SPAM gmail.com at 2/2/2006 5:25:53 PM
Hi Guys, I need a quick reference to Windows Application Development in dotNet. I'm fairly good at the Web Development using asp.net though i'm new to the Windows Desktop Application environment. For question would be how do you "Redirect" back and forth, from one Windows Desktop Form to an...more >>

Math function
Posted by S Shulman at 2/2/2006 2:39:15 PM
Hi Is there a ny function in VB that returns a minus figure? Receives 150 and returns -150 Thank you, Shmuel ...more >>

Prog execution in IDE works, fails when running exe
Posted by Bob at 2/2/2006 2:36:11 PM
Using Vs2003. Program runs in IDE mode, but when I run it from windows explorer double clicking on the .exe file to launch, it launches OK, but running a sub that tests exception handling gives me JIT debugging error, JIT failed with following error - Class not registered. Can't find any spe...more >>

unexpected split functionality - index out of bounds
Posted by Jeff at 2/2/2006 2:28:34 PM
Hello all! I created a successful program that reads data from a reliable tab-delimited file - or so I thought. After getting everything to work with small files, I changed the input to a larger file that was created by the same program with the same format so hopefully there shouldnt be any ...more >>

Identifying and killing processes
Posted by _AnonCoward at 2/2/2006 2:27:45 PM
I want to create a program that can iterate through active processes and shut down certain applications that are running on a system. I need to ensure that these processes are not left running overnight and I can't trust users to do that. As long as I'm in there, I would also like to close a...more >>



Integer to color
Posted by Wonder at 2/2/2006 2:15:27 PM
I'm pulling a value from the db that is an integer, ie 6421504. I then want to use these value to change the color of the text. How can I convert this integer value to a color in vb.net? Thanks,...more >>

Newbie Question: How To Open A File Non-Exclusively?
Posted by Eric Robinson at 2/2/2006 1:54:02 PM
Hello, I want to copy files from one directory to another, but the files in the first directory are occasionally accessed by a process outside my control. Can I can open files for reading in a way that will not interfere with the other process? My process will never change files. I don't care ...more >>

Command line argument in NET
Posted by hien_tran NO[at]SPAM ghc-hmo.com at 2/2/2006 1:29:16 PM
Hello, in VB6, I could pass a parameter from VB Script to the program and retrieve the argument using Command(). Please let me know if there is an equivalent method in .NET. Thank you in advance for any assistance. ...more >>

change download path
Posted by rodchar at 2/2/2006 12:18:30 PM
hey all, i have a windows service that uses the WebClient class to download a file. i guess by default, for someone unknown reason to me, it downloads it to System32 folder. Does anyone know how i can change this? thanks, rodchar...more >>

Multiple result sets from Data Reader
Posted by Keith G at 2/2/2006 11:09:28 AM
Hi I'm using VS 2003 to create a database application connecting to an Access database through OleDb. I've used the OleDbDataReader many times to populate comboboxes or treeviews but only accessed one table at a time into the result set. No problem. To be more efficient with the connectio...more >>

System.Web.Services not found
Posted by cjburkha at 2/2/2006 11:03:12 AM
Hi, I just downloaded vb Express Edition, and I am having some trouble. I have my class file, and I have this line: Imports System.Web.Services But I get a warning: "Warning 1 Namespace or type specified in the Imports 'System.Web.Services' doesn't contain any public member or cannot be ...more >>

How to customize template in VBCommenter
Posted by Joe at 2/2/2006 10:35:44 AM
Hello. We still use Studio 2003 and I have VBCommenter 1.2.6 beta. I want to custmize the template but can't figure out how to do it. The GotDotNet website is not very helpful on this subject. I thought there should be a file called default-autoinsert.xslt somewhere. But where? There's none...more >>

I digress
Posted by cj at 2/2/2006 9:50:47 AM
My questions are often answered by one person who has a working fix I don't really understand. Before I do understand it someone else gives a very different fix. Both work and both are different from the approach I was taking, which, in some cases only has a minor flaw I find days later th...more >>

Drag Picturebox
Posted by Ikey at 2/2/2006 9:50:31 AM
I am trying to allow a user to drag a Picturebox control around the form and drop it in a new location. Currently, I was trying to use the following: Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove ...more >>

Iterating thru User-Defined Data Type Property
Posted by Ronin at 2/2/2006 9:49:30 AM
Public Structure MyDataType dim LName as string dim FName as string 'other procedures/methods/property statements End Structure please look at the codes above... is there any way to iterate thru the variables by using for... each statement like for example for ea...more >>

Web Service Deployment Issues
Posted by Sathyaish at 2/2/2006 9:39:42 AM
I have a Web Service developed using C# and the .NET framework v1.1. When I access the DLL on the localhost, using the URL http://localhost/Folder/bin/MyService.dll it works fine. However, when I x-copy deploy the DLL and its web.config (authorization allow *) to a remote server and set al...more >>

Threading reference
Posted by Mike Eaton at 2/2/2006 8:16:23 AM
Hi there, Can anyone recommend a good reference (book, website, etc.) about writing multithreaded apps for VB.NET? I have inherited some server applications that I think might benefit from thread pooling or multithreading in some fashion, but would like to get more information on the p...more >>

Passing multipe values for parameter
Posted by kurtgambino NO[at]SPAM gmail.com at 2/2/2006 8:05:18 AM
I have crysatl report that uses two parameters that can accept multiple values. Bur any time more than one value is passed to the parameter it only stores the last one inputed below is the code it self please advise. Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table Dim tliCurre...more >>

Regex Help!
Posted by c at 2/2/2006 7:32:20 AM
Hello, I have a question about a Regex I'm trying to write. I'm trying to strip out the DOCTYPE declaration from a XML document I'm receiving. I've noticed that the files are delivered with different DOCTYPEs though. Some look like this: <!DOCTYPE nitf SYSTEM "nitf.dtd"> which I can stri...more >>

How do I open an nonmodal owned form over a mdi container ?
Posted by pamelafluente NO[at]SPAM libero.it at 2/2/2006 4:46:03 AM
Hi guys I am puzzed (???) with a probably stupid problem (VB2003). I must be doing something dumb ... I want to open a owned form (must *not* be mdi child) over an Mdi Container, when the Mdi container starts. I have a small demo program made of: Form1, Form2 (empty) and a "StartProgram" cl...more >>

Detect version of .Net (not in a Setup project)
Posted by Saber at 2/2/2006 2:32:54 AM
To detect if .net framework is installed or not on client's computer, and if yes, what is its version, I found an article: http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;315291 But it can be done in a Setup and Deployment project, my program doesn't needs setup and deployment, it r...more >>

Select Case and If Then Decisions
Posted by DAL at 2/2/2006 2:31:35 AM
I have a list of items in a list box and have used the Select Case decision structure to add names to a label when a selection is made. How do I use an If Then decision structure to concatenate two selections in different listboxes. ie. If listbox1.selectedindex = case 0 And listbox2...more >>

Obfuscation
Posted by ..:: Kevin ::.. at 2/2/2006 2:11:30 AM
Is it possible to perform obfuscation on code automatically as part of a build in Visual Studio 2003? For example, instead of building code in release mode, is it possible to create a custom build configuration that will build the code in release mode and then call an obfuscation program to...more >>

AlternatingItemStyle color question
Posted by simon at 2/2/2006 12:22:10 AM
hello, i have a datagrid, i've set the "header" row to have a white background with <HeaderStyle BackColor="#ffffff"></HeaderStyle> and want the color of the data rows to alternate between a color and white. so i have added <AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle> ...more >>

repost-security problem on 2k5 not on 2k3
Posted by guy at 2/2/2006 12:00:35 AM
i have a simple (1 form) Winforms VB.net 2003 app and am migrating it to vb2005 testing both on the same box... if i run the 2003 version it works correctly, but the 2005 version fails when attempting to connect to a SQL Server database. looking at the connection object after the attempt...more >>

How do one delete index.dat?
Posted by Lars Netzel at 2/2/2006 12:00:00 AM
It's said on many pages that you cannot delete the index.dat files on the computer manually in Windows XP and that you shoudl then buy and use programs that they also provide liks too... how ever.. since these programs you can download can preform this task of either deleting or altering the ...more >>

Conflicting results with identical code
Posted by Neo Geshel at 2/2/2006 12:00:00 AM
I am having conflicting results with two pieces of identical code. One is an insert, the other is an update to a db. The first code, which works, is this: Sub Add3_Click(sender As Object, e As EventArgs) Dim imgStream as Stream = Add3Image.PostedFile.InputStream Dim imgLen as Integer...more >>

how to get the Process Username with runas /netonly
Posted by MS MVP ??? for VB.NET at 2/2/2006 12:00:00 AM
Dear all, I am trying to get the Process UserName by using System.Enviorment.Username, I have no problem by normal "run" and by "runas". I can get the process Username with correct value. However, I try to use "runas /netonly" to execute the program I developed, I found out that it is returnin...more >>

writing function for permutation
Posted by dave at 2/2/2006 12:00:00 AM
Hi There Can anyone help to write permutation function for following formula.. nPr = n!/(n-r)! where n is length of given string and r is lengh of subset.. for example..if given string is "abcd" and r = 2 then out put shuld be ab ac ad ba bc bd..and so on... and if r = 3 then output shu...more >>


DevelopmentNow Blog