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 > july 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

I Want to Extract all URL's from HTML
Posted by CrimeMaster at 7/31/2006 11:14:26 PM
Hi i have stored the html of a web page into a string.And i want to extract all the URL's and want to store them into an array of string. plz help me if some body had write this Function pls send me the code i will be thank full to u. CreimeMaster. ...more >>


saving documents in sql2005 using vb.net
Posted by Zrod at 7/31/2006 10:59:04 PM
hi. i need to be able to save documenets (files) in an sql binary field. i don not know in advance teh typt of document, Anyone can help ion writing the code required? Thanks ...more >>

Frame control is gobbling up my Listbox
Posted by Kevin at 7/31/2006 7:46:06 PM
I have a few frame controls on my form in my Windows Forms app. I have a Listbox that stretches over a few of the frame controls but is invisible until the user click a button. The problem is, when I try to put the Listbox over the frames in the designer view, the Listbox becomes a member of one...more >>

Select node
Posted by Jerry at 7/31/2006 5:25:09 PM
Hello, I have written a program in which the user points to a node and a window opens up. Each node has its own window. Now I'd like to add a "Next" button so the next window opens without having to point to the next or any node. I can get the window open, but I'd also like the appropriate ...more >>

Auto Increment Version in VB 2005
Posted by vul at 7/31/2006 4:31:49 PM
In VB6 there is Auto Increment check box in Project Properties, which allow you have a new version every time you compile the project. Is there any easy way to have this feature in VB 2005? Some of my blocks of code check and compare versions of EXE and DLLs located on the local workstation an...more >>

function help please
Posted by Goldie at 7/31/2006 4:29:31 PM
Can some please look at this function and maybe help me with why it's not doing as it's told... :) It's basicall meant to check to see if that field returned from database actually has any data in it, and if not, return a display:none style to hide it from the list I'm trying to achieve not...more >>

how to control/check Date datatype inputs in textobx?
Posted by Rich at 7/31/2006 3:23:02 PM
Hello, I have been adding a handler to the TextBox.Leave event to check if a value that is entered in a Date Textbox is a Date. This works OK. But I am just checking if there is anything built-In to VB2005 that does this. I have already discovered several goodies that I had not previous...more >>

Space in textBox
Posted by *.dpG at 7/31/2006 3:00:31 PM
Hello I have problem with this... In textBox I have some words with space between for example asdf fhhhh jjjjjkkkkk oooooo and space is not same between all word. I try to have only word in listBox without space (or in new array) and i try this: ------------------------------------...more >>



ToolBox Icon corruption VB2005
Posted by gene kelley at 7/31/2006 2:56:43 PM
If I reset the ToolBox, all the ToolBox Icons are correct. Over time, though, and starting from the top, the icons change to a particular icon, usually the icon for a combobox. The rate of change is sporadic. Some days, there is no change while all of a sudden, two or three more will change t...more >>

Transparent backcolor
Posted by vul at 7/31/2006 2:47:45 PM
I used to use creating headers (label at the top of the screen) for VB6 forms as 2 labels shifted a little bit with different for colors to get a simulation of a shadow. I set BackColor of both labels to Transparent. Everything works fine. I'm trying to use the same approach with VB 2005 win...more >>

How do I copy all text files into one??? eg; Shell("copy c:\CND\dr*.txt C:\CND\TestC.txx")
Posted by Hexman at 7/31/2006 2:08:31 PM
Hello All, I receive many files with similar content each day. All I want to do is copy them into one file, then I'll use that file for my processes. Using vb2005. I've tried: Shell("copy c:\CND\dr*.txt C:\CND\TestC.txx") That comes back with "File not found". There are files there! ...more >>

Thread safe TextWriter question
Posted by fniles at 7/31/2006 2:00:37 PM
Is this the correct syntax to make a Textwriter thread safe ? Thank you. Dim swError As TextWriter Dim swErrorSync As TextWriter swError = New StreamWriter(Application.StartupPath & "\Log.txt", True) swErrorSync = swError.Synchronized(swError) swError.Write(Now & vbCrLf) swError.Close() ...more >>

SqlDataAdapter Questions
Posted by Aaron at 7/31/2006 12:54:15 PM
Hello, The SqlDataAdapter has 4 properties of type SqlCommand, SelectCommand, UpdateCommand, DeleteCommand, and InsertCommand. Setting the SelectCommand allows the SqlDataAdapter to retrieve data from the database using the fill method. Aside from that, I don't see much of a difference. Th...more >>

Sending chr(255) to serial port
Posted by ... at 7/31/2006 11:30:48 AM
Hi I need to send a chr(255) to a serial port. When I send it, through comm.write (chr(255)) it sends a chr(63) ... in Hex, I write chr(&FF) and it actually sends chr(&3F) ... why does this happen, and how can I send it right ? I'm using vb.net 2005 express with framework 2.0 Thanks for ...more >>

Start In & Processes
Posted by Miro at 7/31/2006 10:11:32 AM
In VB-2003, I was wondering if someone can point me in the right direction: Lets say the user has a shortcut on his desktop to your app. 1. Is there any way to capture what the "Start In" parameter is when the app loads? 1.1 Is there any way to be able to see this in the Process w...more >>

How do you set file permissions?
Posted by Patrick Dugan at 7/31/2006 9:43:54 AM
I want to be able to programatically set files permissions for specific users. For example I want to add the user "IWAM_MachineName" to the file "xyz.txt" and give that user "Read and Execute" or "Full Control" Can someone provide a simple example of how to accomplish that? Thanks, P...more >>

Creating ToolWindows with .NET in VBE
Posted by Jan Thordsen at 7/31/2006 8:33:02 AM
Hello Everybody I want to write a few AddIns for the VBA editor VBE with Visual Studio 2005. I have started to develop them in Visual Basic 6 and it worked well but Visual Basic .Net offers a lot of better components and features (and of course it's up to date). I have already created a ...more >>

Problem with System.IO.File.Move and Catching Exceptions
Posted by kkizer NO[at]SPAM gmail.com at 7/31/2006 8:22:22 AM
I have a problem with this simple code below. Moving the files works perfectly, but once in a blue moon the file that it is trying to move dissapears before it can move it. and when this happens the "System.IO.Move" goes in to a loop and keeps creating the file on the destination folder with a ...more >>

onRollBack event
Posted by graphicsxp at 7/31/2006 7:16:58 AM
Hi, I have a few stored procedures called from different methods in my vb.net code and for different dataadapters, that all share the same connection and transaction object. The rollback() method can be called from various places.. But I'd like to execute some code each time it is called. How c...more >>

difference defaultdataview and a normal dataview?
Posted by Danny M at 7/31/2006 6:44:31 AM
What is the difference? ...more >>

Threads
Posted by Bharathi kumar at 7/31/2006 5:20:26 AM
Hi, I have 4 threads running in my windows application. (No. of threads may increase also) My application is an Inventory Management appln. Customers will place orders, Trade center will serve customer orders, Warehouses inturn serve Trade centers orders etc. Customer activi...more >>

Font with Bold and italic
Posted by paraidy at 7/31/2006 3:34:35 AM
Hi, i'm using a richtextbox named r1, and i want to write in Bold and italic, i tryed this for bold and it work Dim f As New Font("Verdana", 30, FontStyle.Bold) r1.Font = f r1.Text = "Hello" but if i try this for bold and italic it doesn't work Dim f As New Font("Verdana"...more >>

Going from A to Z
Posted by Vayse at 7/31/2006 12:00:00 AM
Hi I have to write a program that will list the contents of sub directories in a directory. These directories are for customer info. Layout like this N:\FrenchCustomers\A\Cust1 N:\FrenchCustomers\A\Cust2 to N:\FrenchCustomers\Z\Cust1 So FrenchCustomers, GermanCutomers etc will each have...more >>

How to save iamge in database?
Posted by Ishtiaque Ahmed Memon at 7/31/2006 12:00:00 AM
Dear All Can anyone tell me how to save an JPEG image in a database table field? Below is the code that I have wrote but it gives an error: System.InvalidCastException Object must implement IConvertible DatabaseAccess.SqlConnection.Open() picDataAdapter.InsertCommand = New SqlCommand("...more >>

Positioning Other Applicaitons
Posted by Nathaniel at 7/30/2006 10:58:18 PM
I am seeking to write code that will allow me to position OTHER forms besides my own. Currently I use a 3rd party program called Windows Manager. http://www.download.com/Windows-Manager/3000-2094_4-10493884.html?tag=lst-0-6 This program allows me to chose an application, and position...more >>

Placing a .lnk file on the desktop
Posted by genojoe at 7/30/2006 9:32:01 PM
I am using the following code to locate the desktop folder. After doing this, I would like to place a shortcut on the desktop that opens a specific folder. How do I create the .lnk file for a folder called "C:\Temp"? Help of any type would be appreciated. Dim regPath As RegistryKey = R...more >>

How to change printer's physical print margins thru VB coding?
Posted by Mark at 7/30/2006 8:34:01 PM
Hi, I am creating application in VB 2005. and when I print report it adds extra 0.45 cm margin on left and top, and the reason for this is physical margins of printer. Is it possible to change printer's physical margins using VB coding? Cheers -- Osmotion Blue...more >>

2 pieces of the same code doing different things
Posted by iwdu15 at 7/30/2006 8:12:01 PM
hi, i have these 2 code snippets: Public Sub ImRec(ByVal IM As IAccIm, ByVal Sender As IAccUser) Dim str As String = IM.GetConvertedText(DECODE) Dim temp As String = str temp = temp.Remove(temp.IndexOf("<body>"), 6) temp = temp.Remove(tem...more >>

VB 2005 or Delphi 2006?
Posted by David Green at 7/30/2006 4:23:11 PM
Possibly a daft question here but, hey, whatever. I have been using Delphi in various guises for a number of years but now wonder whether there is any clear advantage to switching to VB2005 (or at least using it concurrently). Views please. DG. ...more >>

Custom Attributes, Shared methods, Derived classes and reflection
Posted by Jeff Mason at 7/30/2006 3:36:12 PM
Hi, I'm having a reflection brain fog here, perhaps someone can set me on the right track. I'd like to define a custom attribute to be used in a class hierarchy. What I want to do is to have an attribute which can be applied to a class definition of a class which inherits from a base, mus...more >>

How to validate Date entries.
Posted by YardDancer at 7/30/2006 1:29:44 PM
Hi All, Does anybody have a routine for validating a date or DateTime entry in a textbox. I know i can use one of the DateTime.Parse(textbox.text) methods which would throw a Fromat Exception. What i am after is something like a IsNumeric() fuction or way i can test a value if it i...more >>

Problems with Source Code Control
Posted by TC at 7/30/2006 11:46:16 AM
I'm using Visual Studio 2005 with SourceGear Vault. I'm having trouble with the integrated source code control features. I think the problem is entirely with Visual Studio, not Vault. First, let me say that I think the integrated source control features are wonderful. They work great, except w...more >>

allowing just numeric value in my textbox
Posted by Reny at 7/30/2006 12:00:00 AM
can any one tell how can i restrict my user to type just numeric character in the textbox.I am using VS.NET 2003 (VB.NET) ...more >>

String translation
Posted by al jones at 7/30/2006 12:00:00 AM
I'm reading data from several font file files (designer / copyright / etc) Several of the strings begin with a chr(63) <might be chr(65) I don't have one open at the moment> and appear to be unicode (2 bytes per char). Several begin with chr(255) and appear to be charW <??> (four bytes per cha...more >>

Problems with UDP Broadcast
Posted by Jerry Spence1 at 7/30/2006 12:00:00 AM
I have the following piece of code: Dim udpClient As New UdpClient Dim MyData = "1234567890ABC" udpClient.Connect("255.255.255.255", 999) Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes(MyData) udpClient.Send(sendBytes, sendBytes.Length) The puzzle is that MyData has to be greater th...more >>

Wanted: Simple VB.NET "WEB" Application with an Access Database
Posted by samadams_2006 NO[at]SPAM yahoo.ca at 7/29/2006 8:29:39 PM
I'm trying to get a simple VB.NET "Web Application" (not a regular application) to work with an Access Database. Seems simple enough, but I cannot seem to get it working. If anyone has a simple example that they can send me it would be very much appreciated. Drop me an email at: samadams_200...more >>

Saving an image from the browser
Posted by Nathan Sokalski at 7/29/2006 6:02:15 PM
I am using ASP.NET, VB.NET, and GDI+ to dynamically create images for webpages. When I right-click on the dynamically created image to try to save it to my hard drive, which I send as ImageFormat.Gif, my browser (Internet Explorer 6.0) wants me to save it as a *.bmp file. The VB.NET line of co...more >>

Cross-thread operation not valid
Posted by Jack at 7/29/2006 5:04:00 PM
I have an application (COM Add-in) that in the initialization code it displays a splash screen. I want the splash screen to close after n seconds , so I add a timer to the splash screen and attempt to close it from the Elapsed event. And I get the Cross-thread error. Conceptually I think ...more >>

*** HELP *** Problems Accessing Simple VB.NET Access Database
Posted by samadams_2006 NO[at]SPAM yahoo.ca at 7/29/2006 3:38:58 PM
I'm having a problem in accessing a Microsoft Access Database in a VB.NET Web Application. It's so straight forward, I thought I'd walk you through all the details here: 1) I have a .NET Web Application called "Lesson18b" under "C:\Inetpub\wwwroot\Lesson18b". 2) I have one Web Form on ...more >>

Print an Excel file in VB
Posted by gavin at 7/29/2006 1:46:01 PM
Have a previously created an Excel file and want to print on default printer. Want to initiate printing from within my application. Thanks ...more >>

Multi-Threaded App
Posted by askhuy at 7/29/2006 12:49:16 PM
Hi All Would someone please explain to me why my threads are not running at the sametime? Here is what I don't understand. When I invoke the TestThread() procedure, I always get the output of main thread first and then the secondary thread's output. Shouldn't the ouput show the mixed m...more >>

Check result of call into Windows API
Posted by Lee at 7/29/2006 4:38:21 AM
(I also posted this query in Microsoft.Public.DotNet.Framework yesterday, but since I have received no responses, I am posting it here too.) Using Windows XP with all updates applied and Visual Studio 2.0. I am trying to develop some common error-handling of Windows API invocations that fai...more >>

Listview columnheader question
Posted by rb at 7/29/2006 3:25:15 AM
Hi All, Is there a property or method to keep the headercolumns from being resized by the user for a listview? I am using Visual Basic in Visual Studio . net 2005 Thank you. rb ...more >>

Print ID card using Plastic Card Printer in VB.net
Posted by Raman at 7/29/2006 3:07:36 AM
Hello friends, I want to print an ID card. I have one Windows Form that contains front and back side. The printer is printing both front and back side at a time. I am trying to send both sides at a time. But it is printing front side on one card and back side on second card. I want to print ...more >>

Winforms User COntrol
Posted by Sara at 7/29/2006 2:48:18 AM
Hello there, Iam creating a user control with 2 buttons, And i have a public static variable i'll be changing the value of the variable in the button click events. When i consume the user control in the winforms application how to automatically get the value of the public variable on ...more >>

Addhandler in a Multithreading class and the events raised in seperate threads, how to get to the caller thread?
Posted by daan NO[at]SPAM dnc.nu at 7/29/2006 2:01:36 AM
Hello, I have a problem and I can't get the solution for it :( I have a com dll, which i imported as a reference. The com object is part of a class which is multithreaded and will create seperate objects which we can and must control. On these com objects I added the events via AddHandler. ...more >>

devenv command line
Posted by wandii at 7/29/2006 12:34:42 AM
Hi, I've been working with devenv from the command line for the last couple of days and cannot get to build the msi file correctly. if I excecute the devenv.exe via the command line or batch file it creates a .msi file with 5k size, however, if I build my solution via the IDE then I get a...more >>

How to toggle the RTS/DTS line
Posted by POgletree at 7/29/2006 12:13:22 AM
Is there any way to toggle the RTS or DTS pin of a serial port from VB.Net 2005? It looks like the system.io.ports insulates you from that ability. Any work around? Many thanks... ...more >>

Regex doesn't match when test string is in middle of file
Posted by Chris at 7/29/2006 12:00:00 AM
Hi Everyone, I am using a regex to check for a string. When all the file contains is my test string the regex returns a match, but when I embed the test string in the middle of a text file a match is never returned. The string that I give to the regex is one that contains the entire conten...more >>

blue mask over icon
Posted by Smokey Grindle at 7/28/2006 10:59:32 PM
Is there any quick way to apply a blue alpha mask over an image? Kind of like windows explorer does when you select an icon by painting the icon over with a blue layer. thanks! ...more >>


DevelopmentNow Blog