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 > march 2006 > threads for monday march 13

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

Enabling / Disabling Tab Pages
Posted by Vignesh at 3/13/2006 9:53:26 PM
I have tab control which has some TabPages. I want to enable or disable the tabpages based on some condition. It is possible to that. Thanks in advance....more >>

String builder (Parsing vertically presented records)
Posted by ILCSP NO[at]SPAM NETZERO.NET at 3/13/2006 8:33:25 PM
Hi, I just started learning Visual Basic (VB.NET 03) and I need to do this small program that will read a text file we get from another company that has survey data, parse it and flatten it out and make single strings out of the records in it. The major difference between this space delimited f...more >>

need help with regular expression
Posted by mikekimhome NO[at]SPAM gmail.com at 3/13/2006 6:08:40 PM
I am trying to capture a whole function definition from a file. I have read the contents of the file into a string variable and tried a regex to extract the function definition. Good thing is I already know the function signature. For example, i have a string variable(sFileContents) that holds t...more >>

Converted code
Posted by Blasting Cap at 3/13/2006 4:58:25 PM
I have a VB6 program that runs as an app, that I want to both convert it to vb.net, and run it as a service on the server. I have been able to create the service, and what I did was to open the vb6 document and convert it into a vb.net program. Once I did that, the routine "check_for_file"...more >>

Capture Xing out of program and run File/Exit
Posted by cj at 3/13/2006 4:39:09 PM
I want when someone clicks the X in the upper right corner of my program for it to run the sub I've put in for the exit item on the main menu (exitMenuItem_click)...more >>

Read CSS in VB.net code
Posted by steve at 3/13/2006 4:01:46 PM
Is there an object that I can instantiate to read a CSS? We have some webpages that we build dynamically in VB.net code and apply such things as color, background color, font etc. to directly in the code. I would like to be able to read a CSS and pull out what I need from that. Is there a way ...more >>

Registration of a MAPI dll
Posted by Samuel Shulman at 3/13/2006 3:55:04 PM
Hi I tried to register the following dll 'AxInterop.MSMAPI.dll' and I get the massage 'dll register Server entry was not found' I need this dll to use OutlookExpress in my .NET program Any clues? Shmuel Shulman ...more >>

Verify if the editing record has changed
Posted by Tom Bianchi at 3/13/2006 3:38:59 PM
Hi, I am using VS2005. I have a form that I use both to insert new records and modify existing records. I want that if the user tries to close the form, the application asks the user to save changes only if the record has actually changed. The problem is that if I use EndEdit, an existing rec...more >>



Techniques in VB for Debugging vs Production Code
Posted by Sebastian at 3/13/2006 3:19:48 PM
Hi, I'm coming from a C/C++ background and wondering if there's a straightforward way to designate debugging code in a vb.net application? I'm accustomed to setting up a Preprocessor macro "Debug()" in the tradition of Steve McConnell, which will include or exclude chunks of code dependin...more >>

VB.NET Automatic code typing features
Posted by NickP at 3/13/2006 2:33:29 PM
Hi there, Either I have come across some kind of "undocumented feature" or I have a rather curiously irritating bug. When typing the intellisense is going into full bork mode and actually typing for me, this bug is irratic but I'll give you an idea... If (...) el()se E...more >>

Urgent help required: The object is currently in use elsewhere
Posted by JJ at 3/13/2006 2:23:27 PM
When I run my form prog, if I maximise, then minimise (i..i. force the GUI to redraw) I get the following error: "The object is currently in use elsewhere" At this line: e.Graphics.DrawString(MenuText.Substring(0, 1), underLinedFont, FontBrush, textLayoutRectangle, sf) (An ownerdraw ...more >>

Using Active X control in .Net
Posted by Pete Smith at 3/13/2006 1:29:52 PM
I have added an ActiveX control to my VB.Net application using "Add Reference & by selecting the control name from the 'COM' tab". I am not seeing the ActiveX control in the toolbox still. What steps should be followed to add ActiveX Control in the .NetFramework 1.1. Thank you, -Pete ...more >>

I'm perplexed with simple ADO.NET - Access DB Access - Please Help
Posted by Hexman at 3/13/2006 1:17:52 PM
I've been trying to figure ADO.net/VB/AccessDB out for some time. I've read many internet articles that have been pointed out to me by people in this group. Thanks for trying to help. I just can't get it. All I'm trying to do (in pseudo code) is: Open a table in Access. read a transact...more >>

Edit and Continue?? VS2005
Posted by sandrapacino NO[at]SPAM libero.it at 3/13/2006 1:16:46 PM
Perhaps a dumb question. I heard one hot features of VB 2005 is the Edit and Continue (while in debug). I was taking a look at a team version at university and tried to import a small vs2003 project. It was read ok, but when debugging the editor is in read only mode. Am I missing somewthing tr...more >>

my config is deleted
Posted by raulavi at 3/13/2006 12:55:29 PM
vb vs2003 in my bin folder I have a config file for my app "myConfig.exe" as "myConfig.exe.config" <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="v3" value="Value 3" /> </appSettings> </configuration> If I execute the exe from the bin...more >>

VB6 to VB.Net - Using X1,X2,Y1,Y2 in .Net
Posted by Y2K at 3/13/2006 12:01:39 PM
I'm hoping someone can lend a hand. I've now been turned down four times on Rentacoder because of various reasons... too difficult, wants more $, needs complete rewrite, and coder never got bit acceptance. The snippet below is a working example of a VB6 program. How would one do the below ...more >>

DataGridView : selected-record changes after sorting ???
Posted by cc at 3/13/2006 11:14:07 AM
Hi, using the DataGridView (.NET 2005) : I have a row currently selected in the Grid (say the 3rd row showing 'Product3') Now, when I click on a column to sort the records is the 'Product3' row located as first row in the Grid but not selected (highlighted) anymore. The position of the sel...more >>

DataGridView : active-row versus Selected-row ???
Posted by cc at 3/13/2006 11:06:01 AM
Hi, using the DataGridView (.NET 2005) : after I fill the Grid with some records is the first record highlighted (selected). When I programmatically select the 2nd row in the Grid and deselect the first one by executing dataGridView1.Rows[0].Selected = false dataGridView1.Rows[1].Sel...more >>

Learning 2.0
Posted by Scott McChesney at 3/13/2006 10:07:57 AM
Folks - I'm going to be starting a new VB.NET WinForms project for my company. This new project will be done in VS 2005. I've been programming in the 1.x versions of .NET for about three years now, but I've done nothing with 2.0, and I haven't even really kept up with the info on it. I k...more >>

Urgent: VB.NET Code to Change Excel Worksheet Header/Footer
Posted by Elena at 3/13/2006 9:51:31 AM
I need the VB.NET code to change the header/footer of an Excel spread sheet, ASAP. I am doing it through a VB application. I can change the ranges/cell values using code, but I do not know how to change things outside of the cell ranges. I will try and post in an Excel group, but i do not...more >>

if result = system.dbnull
Posted by cj at 3/13/2006 9:50:01 AM
in the command window I get: ? result {System.DBNull} [System.DBNull]: {System.DBNull} I need to check for this in code. I then tested in the command window if result = system.DBNull 'DBNull' is a type and cannot be used as an expression. How can I check to see if result is equa...more >>

how to load a .csv file to a temporary table in sql 2000
Posted by with a question at 3/13/2006 9:37:08 AM
hi, i have a vb.net application. Here is what i have to do. i have 2 .csv files with almost similar data i have to lad each .csv in 1 temp table and then compare those 2 temp tables. any ideas ? Thanks ...more >>

load .csv data to a datagrid
Posted by with a question at 3/13/2006 9:21:58 AM
Hi this is the code i have written. my csv file looks lke this Column1,Column2,Column3 1,1,1 43,43,4 132,234,243 54,53,46 but still i get only null null null null null null null null null in my datagrid - what should i do. Dim cn As New OleDbConnection("Provider=Microsoft.Je...more >>

How to provide trial version of software ?
Posted by Niclas at 3/13/2006 8:04:52 AM
Hi, I have deveoped a piece of software (.Net 1.1) which I would like to release a 30 day trial version of. Does anyone know how to do this, or if there are any best practices ? Is there any built in support for time restrictions in the framework ? Niclas *** Sent via Developersdex h...more >>

Export Data to Excel
Posted by Elena at 3/13/2006 7:57:33 AM
I'm trying to export data to an Excel worksheet. I can export the data in the cell values perfectly. I need the code to change a header and footer for the worksheet, not for the columns. Is this possible? If so, I really need the code immediately. Thank you, Elena...more >>

import data from XL into Access
Posted by m. via DotNetMonster.com at 3/13/2006 7:37:29 AM
hi. i have to import data from xl into an existing access table. can someone please help me? im not sure about what sort of connection string to use for XL (im ok with the access part). also, is there a row count function in XL? please let me know if someone out there knows. thanks! --...more >>

MDI and TreeView
Posted by Brian Shafer at 3/13/2006 7:01:28 AM
Hi, I have a MDI app with a treeview control. When I selet a branch of the treeview it opens a form. Now when I have multi forms open and select the form, how do I highlight the brach that caused the form to open ? Brian...more >>

ListView.SelectedItems.Clear
Posted by Mike at 3/13/2006 6:59:27 AM
Ok I'm having a problem with a listview. I have a listview on a WinForm called ProgramInformationFrm. I call this from from 2 other forms. One is ProgramSearch Frm, the other is OpenNCFrm. The search form accepts criteria from a user ans searches a sql table for any nc program that matches the...more >>

"ambiguous" problem with VB.NET 2005
Posted by Denis Samoilov at 3/13/2006 6:06:26 AM
We have a namespace N which includes enumeration ENUM1 and a class C with property C.Enum1, e.g. namespace N { public enum ENUM1{}; public class C { public ENUM1 Enum1 { get{} set{} } } } When we trying to use both N.ENUM...more >>

Please help! Database won't update
Posted by Morten Dahl at 3/13/2006 2:53:08 AM
My database won't update?? I'm using VB.NET 2005 and SQL Server 2005 Express. I Create a Form and a database. Using the wizard draging the DatabaseDataSet Table on the form. Everything works fine. I can edit, delete, and add new records (save), but my changes are not visible when I close a...more >>

ComboBox ReadOnly
Posted by Roberto at 3/13/2006 12:32:27 AM
Hi, using vb 2005 I'd like to have a combobox in READONLY mode, like I have for textbox. Combobox only has enabled property. When I turn this property false I can not select the text in the combo. Has anyone solved this problem? Thanks...more >>


DevelopmentNow Blog