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

Threading...
Posted by Bruce W. Darby at 12/31/2006 10:00:23 PM
I've been doing some reading on threading, using the BackgroundWorker, but I'm getting in over my head a bit. I've run through the tutorial at MSDN and, while it has some good information, it is a bit buggy when it starts it calculations. I've read a couple of books that have some information ...more >>


Access to internet with VB Express Edition
Posted by Tosco at 12/31/2006 6:16:32 PM
I'm new to VB.net and I want to upgrade an application from VB6 to VB2005. The VB6 application uses an invisible WebBrowser control to access some pages and parse the content. Is there a better way with VB2005? Nothing wrong with the WebBrowser (besides the memory leaks), but since I don't nee...more >>

Future Date Woes
Posted by Kevin at 12/31/2006 5:39:26 PM
I have a simple application that handles authentication, and one of the things it checks is password aging. If I have something like this: If ("02/14/2007" <= Date.Today.ToString("MM/dd/yyyy")) Then Messagebox.Show("Date specified is less than current") Else Messagebox.Show("Date sp...more >>

Reading XML Documents
Posted by Just Me at 12/31/2006 5:13:25 PM
Does anyone have code or can point to usefull snippets to allow me to traverse the xml "Elements" of an xmlDocument. What I want to do is to move through the entire document and when I hit <table> <tr> <td> clear the attributes for these Elements and also remove all Elelments NOT nested i...more >>

regular expressions
Posted by Bert at 12/31/2006 2:38:32 PM
Hi How can I delete and mark in a text with a regular expression? thanks B ...more >>

checking for enabled cookies?
Posted by Jeff at 12/31/2006 12:17:53 PM
I have a vb.net application (2005) requiring session variables and want to test to make certain that the user's cookies are enabled. I can set a test session variable on one page and attempt to read it on the next with the code below in order to determine if the user has their browser's c...more >>

A happy 2007
Posted by Cor Ligthert [MVP] at 12/31/2006 12:03:08 PM
For all those who are now in the year 2007. A very happy 2007 Cor ...more >>

Awe Forget it
Posted by Just Me at 12/31/2006 11:10:26 AM
This is a bunch of bull cr*p. I have tried copying tables out on the web and there are so many variations that its not feasable to write a single regex for every situation. So, I give up. ...more >>



Delete files in Windows Vista
Posted by BobF at 12/31/2006 10:58:00 AM
I need to move files between folders. I am using VB.Net 2005. First I check the target folder to see if the files exist, and if so, delete them. Then I move the replacements, one at a time using: If File.Exists(strFileName) then File.Delete(strFileName) End If File.Move(strFileOldName, strNe...more >>

Regex question
Posted by Paulers at 12/30/2006 11:19:50 PM
I have been googling for about an hour now looking for an example of how to locate multiple occurrences of a regular expression and iterate through the matches to extract each one. I need to extract all occurrences of \d{15} out of a string that will also include carrige returns, white space...more >>

Second Try - Regex Question
Posted by Just Me at 12/30/2006 7:40:37 PM
I need a regex to do this. Ignore < possibleWhiteSpace htmlTag Replace whitespace anything > With > Basically I need to remove anything following the html tag up to and including the closing tag Any help is appreciated. ...more >>

consatenate text fom combobox & textbox
Posted by Ivan Jericevich at 12/30/2006 7:21:36 PM
I want to join the text from a combobox and a textbox preferably with a space between, as string ...more >>

question about sub New() in a class
Posted by Bob at 12/30/2006 6:28:56 PM
Hi, I found this code here below (about cartitems and shoppingcart) and I have two questions about sub New(). In the first class CartItem, there is two times sub New(): Public Sub New() End Sub and Public Sub New(ByVal ProductID As Integer, ByVal ProductName As String, ...) ...more >>

question about returning value of a function
Posted by Bob at 12/30/2006 4:28:12 PM
Hi, i'm not sure to understand how a value is returned from a function. Look at this code below about a simple function that compares a value with values 1 from 5. I thought: if the passed value (x = test(?)) is not from 1 to 5, then the return = -1. That's ok. If not, the function will re...more >>

Resource Directory VB.NET 2005
Posted by Just Me at 12/30/2006 3:34:43 PM
I need to access a text document in the folder where my project is stored, does anyone know how I can tell were the folder is from within a form. Like me.myDirectory or something like it ? ...more >>

ExecuteNonQuery - problem
Posted by b_r at 12/30/2006 1:11:41 PM
Hi, I'm trying to make a simple operation (insert into DB) in VB 2005 and SQL Server. The code is as follows: Dim sConnectionString As String = _ "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DB.mdf.... Dim cnDB As New SqlConnection(sConnectionString) cnDB.Ope...more >>

Calling regex Experts
Posted by Just Me at 12/30/2006 9:31:46 AM
I hate regex and I struggle with it, but it may be the simplest way to acheive what I need, if only I knew how ?! Basically, I need to process HTML. I want to strip everything out including all attributes and just leave the following tags. <table> <tr> <td>Cell Content</td> [ more table ...more >>

Getting values between forms
Posted by lakepeir NO[at]SPAM yahoo.com at 12/30/2006 8:18:02 AM
Hello, I'm have defined a combobox on form2 and I'm trying to use that value in form1. I have defined a global value so that form1 can retrieved the modified value as: Public Shared TimerMinutes As ComboBox In form2, this value is modifed with ComboBox1_SelectedValueChanged() and Co...more >>

Process.Start
Posted by lakepeir NO[at]SPAM yahoo.com at 12/30/2006 8:09:11 AM
Hello, I'm trying to launch a text file in the Notepad application. When I click the menu item, the application is not launched and the text file is not launched. Listed below is the code. Code: Private Sub MenuItem_Help_Click(ByVal sender As Object, ByVal e As System.EventArgs) Han...more >>

Typing Markup Tags Ending in />
Posted by Nathan Sokalski at 12/30/2006 1:09:01 AM
I often use self-closing tags (such as <br/>) when creating an ASP.NET application. However, when I enter them in Visual Studio .NET 2005, it automatically inserts a space before the />. In most cases this does not bother me, but for tags such as <br/> that I usually do not use any attribute...more >>

How to modify label.text in a dynamically generated label in VB.net
Posted by vbnewbie at 12/30/2006 12:19:19 AM
I am having problems accessing properties of dynamically generated objects in VB2005. Can someone please help? In a nutshell: My app creates an equal number of checkboxes and labels that share the same Tag number. (I thought it might help) The checkboxes name is a concatenation of "chkCancel" a...more >>

complie Errors
Posted by Roger Vale at 12/29/2006 10:17:58 PM
Hi all Visual studio 2005 Visual Basic windows mobile application I am getting this from the imediate window A first chance exception of type 'System.InvalidCastException' occurred in System.Drawing.dll Now the program still runs but this error seems to appear every time i swap an image...more >>

Radio Button List Spacing
Posted by Jeff at 12/29/2006 7:31:03 PM
Is there a way to manipulate the width of the space between the radio buttons in a radio button list? I can't seem to find a way to do this. ....even tried to insert blank spaces, but VB (at least vb in dot.net 2.0) seems to ignore them. Jeff -- Posted via a free Usenet account...more >>

How can I use the Toolbox Control in my Application?
Posted by Karl Fu at 12/29/2006 6:40:28 PM
Hi, I'm new to VB2005 developement. I've the following questions: 1) Can I create or use the control like the 'Toolbox' of Visual Studio 2005 in my application? If not, any alternatives to do in that way? 2) If a window form control doesn't have 'opacity' property, can I add that property m...more >>

Copying Memory to an Array
Posted by Si at 12/29/2006 4:12:20 PM
Thanks in Advance, I don't know if I need to copy the memory to an Array (thats what I would have done it in vb6), I just need to be able to read/access it. I have a Callback function that is handing me a block of memory - Function BufferCB(ByVal SampleTime As Double, ByVal pBuffer As Int...more >>

RE: VB.NET Service Timer Issue
Posted by at 12/29/2006 4:06:36 PM
I have the same issues with windows service and timers. Your issue is not the only issue with windows 2003 / vb.net service timers. The workaround MS support suggested to keep the events firing was to periodically 'flipflop' the timers enable state somewhere in the code . Seems stupids, but keep...more >>

Re: VB.Net Timer Issue
Posted by at 12/29/2006 4:02:01 PM
I have the same issues with windows service and timers. Your issue is not the only issue with windows 2003 / vb.net service timers. The workaround MS support suggested to keep the events firing was to periodically 'flipflop' the timers enable state somewhere in the code . Seems stupids, but k...more >>

Forms ok in design mode, cropped in run mode, only on my monitor
Posted by RobinS at 12/29/2006 3:42:34 PM
Hello to all, and happy new year! I have this application that someone wrote that I'm sort of checking out. The forms look fine in design mode, but when I run the application, it crops off the bottom of almost every form. I haven't figured out yet if there's a pattern to it. I compared two f...more >>

Adding module to a web service
Posted by sh at 12/29/2006 3:10:45 PM
I have a web service which works fine. I want to offload some functions into a separate module, but as soon as I add an empty module to my project and test it, my web methods don't show up anymore. All I get is the web service subdirectory listing. Do I have to add any code to the module in...more >>

Dumb question
Posted by Robert Dufour at 12/29/2006 2:07:36 PM
What is the meaning of the word marshal and unmarshal in plain english as applied to an exe file? Does it mean the application has started and ended? Thanks for any help, Happy new year, Bob ...more >>

Parsing HTML Tables
Posted by Just Me at 12/29/2006 12:29:53 PM
Hi Geezers, I need some code which will parse and strip attributes from a table in a textbox. Basically, I need to paste in the table and run a little routing to convert the table into a DataTable. Does anyone have such code or know where I can obtain it ? Cheers ...more >>

VB2005 Reading SNMP MIB's
Posted by Jeroen at 12/29/2006 11:38:41 AM
Hi, How do I read SNMP MIB's from a specific computer on a network? I can read information with SNMPUTIL but I want to automate detection of specific MIB's to configure another application using XML (that part works already). The remote system is in the public community. Any samples or good...more >>

Open a file wiht "(" in the filename?
Posted by Al G at 12/29/2006 10:20:30 AM
Hi, VS2005team(w/ sp1), VB, XP(w/ sp2) I am attempting to open a file that has parenthesis in the filename. The following code works OK without the "( )", but not with them. The error is: "Command contains unrecognized phrase/keyword." Does anyone know a way to work around this? T...more >>

Problem with RadioButton
Posted by Igor at 12/29/2006 9:26:28 AM
RadioButton have property Checked (true or false). If I make RadioButtons with code, without drawing by mouse than I have problems. I write like this: Dim rb(0 To 2) As RadioButton Dim n As Integer For n = 0 To 2 rb(n) = New RadioButton rb(...more >>

DataGrid and ArrayList
Posted by Jarsinio at 12/29/2006 5:56:36 AM
Hi, In my aplication I have an ArrayList thay hold many instances of a class. ( The bussiness layer return to the UI layer an ArrayList) I want to know how Can I fill the DataGrid with the arraylist ? Thanks Alan ...more >>

How to prevent file to be copied
Posted by sajin at 12/29/2006 12:12:08 AM
Hi All, I am having a vb.net (VS 2005) application which creates some files in the Program Files foldes ( lets say 'Test') , but as usual when i uninstall this application i remove the folder from the Program Files but the thing is that if the user is bright enough and he did a copy paste to ...more >>

textbox delete and undo
Posted by Steve at 12/28/2006 11:23:58 PM
I have created my own context menu. Everything works except undo'ing deleted text. My code for these two events are: Private Sub tsmiUndo_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles tsmiUndo.Click ' Undo the last thing the user did and clear the undo buffe...more >>

VB2005 registering a dll
Posted by Galen Somerville at 12/28/2006 6:22:52 PM
I have an app using a VB6 ActiveX.dll which I also have made as an exe. Both the dll and exe have exactly the same code and start in Sub Main. There is no form involved. I start this activex as a Process like so: Dim NewProcess As Process = New Process Then I use one of these: ...more >>

Listening socket still listen after first connection
Posted by iwdu15 at 12/28/2006 5:41:01 PM
Hi, i have a socket that i use to listen for a connection. there can be any number of connections. when testing my socket, it sees the first connection, then no others. i call the BeginAccept() method again, but it doesnt see any other connections. heres the code... Private Sub Button1_Clic...more >>

Upgrade for Deployment Purposes
Posted by Tim A at 12/28/2006 4:49:00 PM
I have recently migrated from VB6 to VS2005 Express. It would appear that in order to specify a splash screen EULA during install and specify a specific install folder (that the end user can override) I will have to "get off my wallet". My question is - will "Standard" do the trick or do I n...more >>

Deleting directory path and files. VB.net 2003
Posted by Kimera.Kimera NO[at]SPAM gmail.com at 12/28/2006 4:46:23 PM
I'm trying to write a program in VB.net 2003 that basically deletes all files, folders, sub-folders and sub-sub folders (etc). The program is simply for deleting the Windows/Temp folder contents, removing all the files/folders inside it. The problem i am having is that i can only delete file...more >>

How do I sort an ArrayList of objects by a property value
Posted by Paulers at 12/28/2006 4:09:33 PM
Hello I have an ArrayList full of Person objects. I would like to sort the object array by the objects property 'Name' so when I loop through it and populate a combobox they are in order. How do I attack something like this? Any help is greatly appreciated. thanks! ...more >>

listbox datatable selected item
Posted by cptkirkh at 12/28/2006 2:38:14 PM
I havea listbox bound to a datatable. When the form loads it thinks the first item is selected. Is there anyway to tell the listbox when it loads not to select the first time automatically? ...more >>

how to start explorer to console app location?
Posted by James Maeding at 12/28/2006 2:34:01 PM
I am using VS 2005 to make a console app that shuts down explorer.exe and restarts it. I can shut it down no problem, its starting it back up to the same folder as the console app that is proving difficult. This code works fine in debug run but fails on final release: Dim strAppPath As String =...more >>

Binary Search Tree - CompareTo Error
Posted by BenCoo at 12/28/2006 1:38:42 PM
Hello, In a Binary Search Tree I get the error : Object must be of type String if I run the form only with the "Dim bstLidnummer As New BinarySearchTree" it works fine. Thanks for any help on this, Benny My BST-code lookes lokes this : ********************************************...more >>

working with Access in VB.Net
Posted by Trevor at 12/28/2006 12:03:27 PM
I have created a small DB in Access, I then created the datasource and got the data through to the app in detail and it shows me 6 columns and each of the 6 columns holds a number. I then have a further 6 text boxes, I want to enter a number in each of the textboxes and search against all of the...more >>

Change Connection String during runtime
Posted by Sankalp at 12/28/2006 7:46:25 AM
Hi, I am using VB 2005. My application has many data bound controls. The connection is stored in the app.config file. I want the application to start with a default connection string and while during the runtime, the user can click on a button and change the connection string without exiting ...more >>

QuickBooks Style DataGrid
Posted by Fido at 12/28/2006 4:00:58 AM
Hi. i want to develop QUICKBOOKS style datagrid for my final project. i have no idea how to make this thing. and any one tell me how to develop such a grid? Thanx in Advance. ...more >>

How do I close a project without saving
Posted by Ivan Jericevich at 12/28/2006 2:13:17 AM
I changed some bindings and made a real mess, I would like to close the project and reload from my last save. How do I close the project withot it saving in it's current state of mess. ...more >>

Finding interrelation between primary keys in tables
Posted by hirak chatterjee at 12/28/2006 12:57:39 AM
Hi, i want to find interrelations among all the primary keys in all the tables. for e.g== the output will be .....is the primary key of table............ .....is the primary key of table..... and foreign key in table...... etc...like this. i am using jdbc and oracle. i will take care of...more >>


DevelopmentNow Blog