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 > october 2006

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

error in project designer file
Posted by GS at 10/31/2006 10:07:50 PM
when I try choose an image by importing a bmp file. I found the visual studio express creating a designer vile for my project. that is if my assembly name is myapp, I will find a new file myapp.designer.vb that did not exist before. what bothers me is that immediately I see a lot of errors sho...more >>


Animations for games
Posted by Mike Stolkes at 10/31/2006 8:33:35 PM
I have the task to make 2 or 3 simple games, probably some shot them up game (space invaders or so) and a poker game. For this I need to move things around very quickly on the screen. So that is my question.. What is the easiest way to achieve fast animations in vb.net? I know I can write i...more >>

How to tell .methode with one to take?
Posted by De Roeck at 10/31/2006 7:46:16 PM
Thanks for reading, I've got the following function: Private allFlags As BindingFlags = BindingFlags.Public Or BindingFlags.NonPublic Or _ BindingFlags.Static Or _ BindingFlags.Instance Public Shared Function StartAUT(ByVal applicationPath As String, ByVal typeName As ...more >>

Import BLOB from XML
Posted by Daren Hawes at 10/31/2006 7:02:40 PM
Hi, I have been given a XML file containing Image BLOB data. They probably did a dataset.writeXml() to get the XML fule loaded. How can I import this into my MS SQL Server? I have tried simple inserts, Stored Procedures and Command Builder ideas however it all boils down to converting ...more >>

Is application running?
Posted by TClancey at 10/31/2006 5:56:02 PM
Hi again, hopefully the last question for the damned application! I have one application that needs to load another, this may happen everytime the first app is started, or it may happen randomly. If the second app is not open my first app needs to open it. If the second app is running I c...more >>

Treeview doubleclick help
Posted by John Dann at 10/31/2006 5:35:46 PM
I'm trying to implement a fairly simple Treeview procedure but running into problems. My Treeview has just two levels of nodes: top-level and one child level. I want a doube-click on the Treeview to do one of two things: If the double-click was on a top-level node then the default action of ...more >>

Iterate through File System
Posted by Elmo Watson at 10/31/2006 3:58:13 PM
Can anyone point me to an example that shows how to interate through the file system, at a given starting point, listing files, plus Subdirectories, then, all the files and subdirectories in them also? ...more >>

Auto Gen Properties from fields
Posted by Steve Long at 10/31/2006 3:53:25 PM
Does anyone know is there is a way to automatically generate properties from the fields in a class in VB.NET 2003? So, I type in all of my private fields and now I want to populate the class with properties to match. Is there a code gen to do this or is there a macro I can write or something?...more >>



To create an instance of class in VB2005
Posted by Jordi JuliĆ  at 10/31/2006 3:31:52 PM
Hello, I need to create with VB2005 an instance of one of the classes of the project in run time. For example: - The Namespace root and the name of the project are he himself: "Project" - The project has including three class: Class_1.vb, Class_2.vb and Class_3.vb In VB2003 it did o...more >>

inserting date into sql server
Posted by Paul at 10/31/2006 3:21:01 PM
I'm sure this isn't a difficult question, but I've been struggling trying to insert the current date into a sql server field. I've tried numerous suggestions that I've seen in newsgroups and everything either gives an error or puts 1/1/1900 in the field. The code I'm trying is: Dim sqlCMD...more >>

Try Catch Overkill
Posted by pigeonrandle at 10/31/2006 3:05:35 PM
Hi, Does this bit of code represent complete overkill?! Try 'create a treenode Dim tn as new TreeNode() 'add it to a treeview tv.Nodes.Add(tn) 'do some other stuff Catch ee As Exception 'something weird has happened Try 'try to remove the treenode from the treevie...more >>

Try Catch Overkill
Posted by pigeonrandle at 10/31/2006 3:05:01 PM
Hi, Does this bit of code represent complete overkill?! Try 'create a treenode Dim tn as new TreeNode() 'add it to a treeview tv.Nodes.Add(tn) 'do some other stuff Catch ee As Exception 'something weird has happened Try 'try to remove the treenode from the treevie...more >>

Acccess to a file on desktop is denied
Posted by vvenk at 10/31/2006 2:52:02 PM
Hello: I have an ASP application that takes a file and parses it. I have a fileUpload control on my ASP page. Here's the code that gets file details: Dim srFile As StreamReader Try srFile = New StreamReader(getFile.PostedFile.FileName) Catch ex As E...more >>

class inside a class?
Posted by HockeyFan at 10/31/2006 11:59:34 AM
Class A . Function A1() . Class B Function test() How do I reference FunctionA1 here? End Function End Class End Class ...more >>

VS.NET 2005 - lost in translation?
Posted by Dave at 10/31/2006 11:52:20 AM
Hi folks - extremely new to this, so I've been hunting up online example to allow me to create a simple web front end to a SQL DB. I was doing well with a demo but I'm stuck and I'm not sure of the next step. This is the example in question: http://www.wherecanibuyit.co.uk/ASP/advanced_gridvie...more >>

Help with Vb.net 2002
Posted by Warex at 10/31/2006 10:57:01 AM
Hello, Can someone tell me if there are any updates for .net 2002 to get up to date with 2005? Or do I need to download express 205 / buy it again? Bought 2002, just dont see why i need to buy it again..... ...more >>

system.net.mail
Posted by RedMoosh at 10/31/2006 10:40:03 AM
we have to mass email around 3000 to 10000 emails to clients with attachments. can i use system.net.mail to accomplish this task from the server? all my info is in a csv format along with paths to all the attachments which will be transfered to the server and saved to a temp location. am ...more >>

Change color of HideSelection from Grey (Sorry if posted twice, first choked)
Posted by Shane at 10/31/2006 9:50:23 AM
Is there a way to change the HideSelection color in a treeview? I'm using the treeview as a replacement of a tab control. The grey background doesn't stand out well enough, when the treeview loses focus. I could just not use the HideSeletion property and change the node color when I Leave or ...more >>

ATTN: Seth Rowe follow up to startup path posting
Posted by Rick at 10/31/2006 7:53:14 AM
Hi Seth, I'm following up to my posting of 28-10-2006 where you gave me directions to use a strong name with my app and install onto client computers using the msi. It worked! Thanks a lot. I'm sure it saved me hours of time. I feel like I am in an unlit cave wandering about lookin...more >>

Update VB6 to VB.NET 2.0 Email Send
Posted by Li Pang at 10/31/2006 7:20:02 AM
Hi, I have following codes in VB6 for sending the email on a server installed SMTP. It works fine. Now I want to update it with VB.NET 2.0 by using ..NET.Mail object. VB6 code: Dim myMail Set myMail=CreateObject("CDO.Message") myMail.Subject = "Sending email with CDO" myMail.From = "Testin...more >>

Access dynamic controls by name?
Posted by Anil Gupte at 10/30/2006 9:21:51 PM
How does one access dynamic controls by name (or whatever other means)? I have the following: Dim newbtnPick As New Button newbtnPick.Name = "SliceButton" & CurSliceNum newbtnPick.Location = New Point(SILoc.SIPickbtn, SILoc.SIY3) newbtnPick.Size = New Size(SILoc.btnW, SILoc.btnH) newbtnPick...more >>

How do u copy multiple files from a lsbox to somewhere else using vb.net
Posted by surimca2002 NO[at]SPAM gmail.com at 10/30/2006 8:30:54 PM
How do u copy multiple files from a lsbox to somewhere else? Does a CopyFile method work in this case? If so, how do I manage to copy multiple files? using vb.net pls give me solutions asap. ...more >>

Access SQL Server over Novell
Posted by Tim at 10/30/2006 5:48:02 PM
I am trying to access an MS SQL Server over a Novell network from a VB.net program and I can't get the connection string to work. It works on other clients that use Windows networks. Anyone know what I need to do differently for Novell. Thanks, Tim ...more >>

TCP Transfer issues
Posted by Rich at 10/30/2006 4:38:31 PM
I am writing two programs that are part of a Bulletin board system. The program works right, but when information is downloaded, the server program refuses to send more than 9 Kilobytes of data to the client. How can this be fixed? The code is: Server (Running in a separate thread from UI)...more >>

IsNumeric question
Posted by Paul at 10/30/2006 4:35:54 PM
Hi, I am trying to check a string to see if it's first 3 characters are numeric and if they are, to replace those 3 characters with something else. I've tried this but nothing happens... newname = Replace(newname, VB.Left(newname, 3) = "101-", "101. ") The method I've been using up t...more >>

Multiple TcpListeners on the same IP address
Posted by Goran Djuranovic at 10/30/2006 4:17:40 PM
Hi All, Is it possible to have mulitple TcpListeners on listening on the same IP = address and different port?=20 Something like: Dim t1 As New TcpListener("192.168.25.25", 9000) Dim t2 As New TcpListener("192.168.25.25", 9231) t1.Start() t2.Start() TIA Goran Djuranovic...more >>

Specify mouseClick event for controls created at runtime
Posted by Bill Nguyen at 10/30/2006 4:04:57 PM
I added a button control at runtime to a webbrowser control (also created at runtime) How do I specify the action when user clicks on this button since it's not available in design time? Thanks a million Bill ------------------- Dim mButton1 As New Button With mWeb1 mButton1.Tex...more >>

OT-develing on several machines
Posted by Jon Doe at 10/30/2006 3:45:44 PM
Hi Sorry for this OT post. What is the norm when you have to use 2 or more machines when you develop? I use a workstation as my main developer machines, but quite often I need to use my laptop instead for variouse reasons. How does people tend to handle the issue with saving y our source code...more >>

From VB Newbie: The editor is driving me nuts.
Posted by PC at 10/30/2006 3:38:43 PM
Gentlesoft, I'm a long-time programmer, new to VB.NET/Visual Studio 2005. Sorry to complain, but the editor is driving me nuts. I don't see how one can get any programming done when the persnicketty thing is constantly interrupting, shuffling and inserting. My style is to get the code ...more >>

Format string in DataGrid
Posted by Rick at 10/30/2006 3:27:02 PM
VB.Net 2005 I have a non-bound datagridview that I fill with a column that contains a UPC number (as a string). I want the display format to be like this: 0 12345 67890 1. I have tried setting the format at design time to "# ##### ##### #" and also in the cell formatting event with: e....more >>

Why does activex control run 3x+ faster in vb5 than .net?
Posted by bartj1 NO[at]SPAM gmail.com at 10/30/2006 3:00:54 PM
Hi, I did a benchmark comparison of a National Instruments Active-x "Strip Chart" control in both Vb5 and vb.net(2005). The code is identical: For I = 1 to 10000 ARR(1,0) = J AxCWGraph1.ChartY(arr) j = J + 1 If j > 10 then j = 0 Next It takes .8 seconds for a VB5 e...more >>

Where is code snippet manager?
Posted by Robert Dufour at 10/30/2006 2:00:26 PM
In Vs2005 I don't see the code snippet manager item in the tools menu. How can I get it to show? Thanks for any help. Bob ...more >>

Windows Service not starting automatically
Posted by Ashley Bryant at 10/30/2006 2:00:02 PM
I've created a Windows Service in vb.net that is set up to run automatically, but it never starts during system startup. I can start it manually, but I need the service to start without any user interaction. When I originally installed the service, I had to attempt the start twice as well fr...more >>

Replacing Double quotes with TWO Single Quotes
Posted by Justin Fancy at 10/30/2006 11:26:02 AM
Hi everyone, I need to replace all instances of a double quote(") with two single quotes('') in a text file. I already have some replacements of strings going on, but I tried this one, but the syntax is being read wrong. Here is the code: lineFile1 = sr.ReadLine ...more >>

How to turn off Managed Debugging Assistant in VB.NET (2005)
Posted by Rob R. Ainscough at 10/30/2006 10:43:31 AM
I can't seem to locate the appropriate area in VS 2005 where I can accomplish this -- is this a C# only option? Thanks, Rob. ...more >>

How to change the Internal Name in Application
Posted by j_mmtz at 10/30/2006 10:18:03 AM
Hi, i need to change the internal name of an application VB Net in visual studio 2005, but i can't find this option if it exists, please can somebody help me?. thanks....more >>

Multiple Component Classes
Posted by TClancey at 10/30/2006 10:09:50 AM
Hi all. I'm having some problems with a project I'm working on. I have a Class Library which contains several Component Classes, each working independantly. It seems that I can't have two Component Classes that Inherit the same standard vb control, ie PictureBox. Do I have to create a ...more >>

Sum column of a DataGridVuew
Posted by Tony A. at 10/30/2006 7:43:02 AM
I'm trying to write a procedure that sums the values of a column in a datagridview. If a row is empty (has no value entered) the procedure crashes. I've added code to check to see if the column for the row is blank, this error apears: Conversion from type 'DBNull' to type 'Integer...more >>

Mixed types in multidimensional arrays
Posted by Anil Gupte at 10/29/2006 11:25:10 PM
How can I dimension an array like this: dim info(a as integer, b as string) so I can store somthing like {{"John", 10}{"Dan", 20}{"Jane", 30}} I want to be able to sort this array too, but I think I can swing that if I know how to create this array or whatever else method is needed. -- ...more >>

Can I convert my VB.Net Windows Application to ASP.Net ?
Posted by Luqman at 10/29/2006 11:04:33 PM
Is there any way to convert my VB.Net Windows Application to ASP.Net or = Web Application ? I have created one, and now my client requries me to port the same = Application on Internet ? Any idea or easy way to do so ? Best Regards, Luqman...more >>

Messages
Posted by unwantedspam at 10/29/2006 9:49:44 PM
Thank you in advance for reading this. I need to have two applications send messages over the network to each other. Basically one server application and (possibly) many client applications. I am using VS 2003. What choices do I have when it comes to implementing this. I am currently using (and ...more >>

GET SUBNET LOCATION IN VB.NET
Posted by Morten Fagermoen at 10/29/2006 9:39:42 PM
Hi! I try to get the subnet location info using the code below found at http://msdn2.microsoft.com/en-us/library/system.directoryservices.activedirectory.activedirectorysubnet.location.aspx. But it only tells me that "instance" is used before it has been assigned a value. Can anyone tell me...more >>

Can't override CultureInfo.ToString
Posted by Phil Jollans at 10/29/2006 9:29:02 PM
Hi, I am having difficulty overriding the ToString() method of CultureInfo using Visual Studio 2005. Exactly the same code works fine with Visual Studio .NET 2003. What I am doing is adding objects which are derived from CultureInfo to a ListBox. I want the language name to be displayed i...more >>

Method does not have same signature etc...
Posted by Anil Gupte at 10/29/2006 6:58:33 PM
I created a button dynamically and added an event hander as follows: AddHandler newbtnPick.Click, AddressOf newbtnPick_Click Private Sub newbtnPick_Click() End Sub I get an error: Method 'Public Sub newbtnPick_Click()' does not have the same signature as delegate 'Delegate Sub EventHand...more >>

Did Mabry Software Tank!
Posted by Marcus Smaby at 10/29/2006 5:38:21 PM
I have been a user of the Mabry FTP.NET control for a long time. When I go to their website www.mabry.com I get a page not found message. I have been doing this for 3 weeks now. I am hoping someone knows their status as I need to update some controls I have from them. I m hoping they have DotN...more >>

More than one method is found with VB but not with C#
Posted by De Roeck at 10/29/2006 2:43:29 PM
Hi, I've want to launch an application by reflection and get his handle back. But when I run this code in C# then it's handled correctly. The application(-path) is started on a new thread and obj is the hwnd of the started application. private static BindingFlags allFlags = BindingFlags....more >>

Lock a subform into a panel?
Posted by Dean Slindee at 10/29/2006 1:39:02 PM
I am showing a (sub)form within a panel in a host form. The subform title bar needs to show, but I would like to "lock" the subform in place within the panel, so that the use cannot drag it off the panel. Is this possible? Thanks, Dean S ...more >>

Use dll created in dotnet using them from vb6
Posted by Raul at 10/29/2006 1:35:56 PM
Dll created from dotnet, like the calls can be made from VB 6. Greetings and thank you ...more >>

From seconds(long) to date in vb .net
Posted by funzia at 10/29/2006 3:53:44 AM
Hello! I must convert seconds (long format) into common data format (yy/mm/dd hh:mm:ss). Please help me! Thanks! ...more >>

Add Icons to %SystemRoot%\system32\SHELL32.dll
Posted by Pebeco2 at 10/28/2006 6:41:47 PM
Is there a procedure to add Icons from clip art or other internet downloads to "shell32.dll" so they may bused for desk top Icons? Or is there another way to use downloaded pics to use as desk top icons? ...more >>


DevelopmentNow Blog