Visual Basic General - Visual Basic
Recent update: 2008-3-21

Code Analysis / nested classes / what to do

735 byte By AlChristoph at 2008-3-7
I discovered by accident that if I took the stuff I'd normally put in a module and nested it in a class (usually as shared) I really uncluttered the autocompletion lists. (I'm a great one for always typing system.windows.forms.... So seeing less and typing more is in for me!)OTH Code Analysis ...

Textbox databinding with table

548 byte By guest at 2008-3-7
HiI am using Visual basic 6 with Sql Server 2000. I have an editable textbox in my windows Form, which gets the value of a percentage field, say Tax_Rate from database. So the data field property of textbox is set to Tax_Rate. So I want to display the value to user after multiplying by 100 (%) but w...

starting VB .NET

501 byte By bdonnelly at 2008-3-6
Hey everyone. I'm a 15 year old guy, and recently I've been getting interested in programming. I've been learning C for 2 months or so now, and this summer I will be starting VB .NET, using my Uncle's 2003 books and CD's. I was just wondering if you guys could just tell me anything you ...

Sendkeys during program startup

552 byte By AlChristoph at 2008-3-5
To make life easier, one of the things I provide in programs I write is a /Sendkeys= parameter for the command line. What is always yucky poo in any given program environment is figuring out what event in the startup sequence is 1) Unique so you don't do it again. 2) Always will occur3) Will ...

exe file

191 byte By safi_h80 at 2008-3-3
How can I create an exe file from VB.NET project that include a data base? note:: I want to run the exe file in a computer that have no sql server and no .NET framework thank you safi

WindowsFormsParkingForm error

692 byte By Erin at 2008-3-1
I have been developing a VB.NET application, and have been trying this week to test deploy it to other machines here in the office and keep getting some sort of message like "WindowsFormsParkingForm" error, memory location cannot be written to. This error comes up after the "End Sub" in Sub ...

Problems with ADO .NET

1220 byte By Sugoiram at 2008-2-28
Hi, I'm trying to pass a LongVarBinary data type parameter to a dynamic SQL, but it gives me a Syntax error.That is in order to insert a blob data type under Informix DataBase. The code that I'm using is the following:'******************************* dim intValReturn as integer = 0 dim ...

How to save and load user ordered columns in the datagridview-control?

796 byte By Macy-Mike at 2008-2-27
Hi NG!First, sorry for my bad English The datagridview-Control enables the user to order columns as he like. But how do I store the order of the columns and how do I set the column-order in the way the user want to?I searched for a sample about My.Settings in association with the datagridview ...

Why doesn't this declaration work in my forms

393 byte By dennist at 2008-2-26
Why doesn't this declaration work in my formsImports microsoft.VisualBasicImports System.DataImports System.Data.OleDbImports System.IOPublic Class ClassPrimary Friend s As String = ControlChars.CrLf Shared Sub main() Application.Run(New frmStartup) End Sub End ClassWhen I type s in a form it ...

Visual Basic 2005 MenuStrip RadioCheck Properties

192 byte By lew26 at 2008-2-25
I can't seem to find the radiocheck properties for menustrip menu's it is in earlier visual studios version. does anyone here know anything about that? I would surely appreciate the help.

MultiColumn ComboBox? - Open for Discussion.

4071 byte By ComSpec at 2008-2-24
Hi all;Maybe I am missing something, but given the follow example taken from msdn: ' Declare comboBox1 as a ComboBox. Friend WithEvents ComboBox1 As System.Windows.Forms.ComboBox ' This method initializes the combo box, adding a large string ' array but limiting the drop-down size to six ...

Queue Object

526 byte By fenris at 2008-2-23
Does anyone have any examples of using a queue object with multiple threads? I want to load a que with strings that point to files and I would like threads to retrieve a string from the que and process it (this would continue till the que were empty). I can generate a couple of threads, but I ...

Convert to 2005 error

446 byte By BryanNate at 2008-2-22
Whenever I try to convert one of our 2003 projects to a 2005 project I get the following error: An unexpected error has occurred. Error Message: We were expecting a log file to be produced at '' but it does not exist.This is occuring in the Beta 2 release.Anyone else run accross this or know ...

How to use System.Net.Mail.SmtpClient via SSL and Authentication?

238 byte By HotQQ at 2008-2-22
Sorry, this thread is now discussed at the <a target="_blank" title="/msdn/ShowPost.aspx?PostID=7575" href="ShowPost.aspx@PostID=7575"> http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=7575</a> Please do'nt reply it here.

Can't deploy...

675 byte By KeremBaser at 2008-2-21
Hi,I am getting the following error message when I try to install the application I published. "Application Failed. Unable to continue. The application is improperly formated."This is the second time I'm publishing an application with VB 2005 Beta2. I didn't have any problems at all with the ...

VB .NET Resource Kit License

518 byte By JasReich at 2008-2-20
If this is not the appropriate place for this, please advise. I've looked around the MSDN site and did not come across an obvious alternative... I have inherited a VB.NET project that is built using some ComponentOne components that are provided on the now discontinued VB.NET Resource Kit CD.I ...

Help on Installing VB & VS Beta 2 and Uninstalling Previous Builds

526 byte By PaulYuk_MS at 2008-2-20
Hi-We are seeing a number of discussions about issues having to do with VB or VS Beta2 not working properly on a machine that had a previous installation. Members of our team responsible for setup/installation are actively working on solutions, tools, and documents describing how to resolve. ...

Where is the toolbox?

391 byte By Johngeh at 2008-2-20
I have installed VS on three different machines and I can only see the toolbox on one of the machines. Is this a known issue?When I create a new Windows Application, I see the form but the toolbox is nowhere to be seen and I can't find any option in the menus to make it appear. I tried ...

Wizard error converting 2003 VB project with forms

308 byte By EPISWarren at 2008-2-19
I am trying to load a 2003 VB project in 2005 Beta 2. The VS conversion wizard ends with an error saying: Unexpected error Error Message: We were expecting a log file to be produced at " but it does not existNo other information is given and a log file cannot be found.Any one have any ...

Is there any solution to break an exe in VB6

667 byte By Niru at 2008-2-19
I am a non-technical person totally new to programming. One of my friend developed a software for me. I need some updates in the software Now. Its in VB6. The software is a educational software. But now my friend and I are not in talking terms. And he is not ready to help me . I am already invested...

GetValueByName

336 byte By vruttan at 2008-2-18
In beta1 there was a fantastic way of getting values out of a gridview using: Gridview1.DataKeys(Gridview1.SelectedIndex).GetValueByName("Name").ToStringIn beta2 this has been removed - how do I achieve the same results? I used this alot and will have to change a lot of code, especially if I ...

Installed Printers in 2005 beta 2

1705 byte By jmorgan at 2008-2-17
I am trying to get a list of installed printers. I added a form and a printdialog1 and the following code: Dim i As Integer Dim pkInstalledPrinters As String Dim printdoc As String For i = 0 To PrintDialog1.InstalledPrinters.Count - 1 pkInstalledPrinters = ...

Transparency seems impossible in Visual Basic 2005 :..(

1280 byte By TailsNZ at 2008-2-16
Hi, I've been using VB 6.0 in the past, but .gif transparent images were too limited in colors, and .png seems so much better. So I got the beta 2 edition of Visual Basic 2005 (free off Microsoft's website, nice surprise!). The thing is though, transparency like on the image I attached ...

Catching carrage return

642 byte By WayneSpangler at 2008-2-15
I am trying to catch the carrage return with this code I found on net but doesn't seem to work. Nothing happens.Is there another way to do it?If e.KeyChar = Microsoft.VisualBasic.ChrW(13) Then ...

rock paper scissors game help

634 byte By Thanes at 2008-2-15
Hello, I have a game I am designing and I am having problems getting my code.I have declared Wins and Losses in my global variables and am attempting to call those in a select case as show in my code. However it is not working properly, If you run the game you will see that the different ...

Determine Dll Types Programatically

87 byte By SethMaffey at 2008-2-15
How can you programmatically determin if a dll is an assembly, win32 or activex?

Getting application settings in control libraries and other separately compiled stuff

648 byte By AlChristoph at 2008-2-15
I will admit that i'm not really on top of the class structure yet:-( That saidI guess that I understand that in a control library My.Settings refers to any settings that are established for the library. (Not sure how I'd use that:-)So the question is how do I see the settings associated with ...

Inherited Forms

636 byte By TravisXXX at 2008-2-15
I have a base form with some buttons and a splitter control. On the splitter I have put a panel on each section of the splitter. I have several forms that inherit from this base form. On those forms I have placed controls on one of the panels in the splitter. My problem is that if I make any ...

VB6 ASP/COM+ Debugging Problem after Windows 2003(SP2) Install

499 byte By Venkat at 2008-2-15
Since I installed Windows 2003 with SP2 yesterday, I have been unable to step-through debug COM+ components called from an ASP page in VB6. If the debugger is not running, then the page loads successfully. If I start the debugger, IIS returns the following error to the browser:Server object error &#...

Working with "File Selection" in VB Express

477 byte By JSteuerIII at 2008-2-14
I'm having trouble finding and understanding the proper way to work with selecting files/directories in VB Express. How would I create a string that represents the filenames and/or directory names that are selected from a "WebBrowser" control. (For instance - Viewing a web page (or in this ...

Conditional color for gridview rows

674 byte By Yahya at 2008-2-14
HiHow can I conditionally colour gridview rows based on a column value using vb.net code?ThanksRegardsYahya<?xml:namespace prefix = o ns = "urnchemas-microsoft-comfficeffice" ...

How to data stuff from an Access Database with VB 2005

302 byte By LarryGatlin at 2008-2-13
I see other solutions, but have been beating my head trying to get set up to be able to port my vb6 stuff to .net. I use an Access Database with Many tables and relationships. Most of all the samples I see are for SqlServer etc. Where is a good area to go find samples etc for doing Access with ...

Combo box keyup event

371 byte By merwinp at 2008-2-13
Anyone can help me, on my form i used combox control for selctionChangeCommitted the action is fine but i want to use keyup event that will search for an existing datatable bind to :first on form load i used the a method to bind the datatable to comboboxwhen i select using dropdown that is okey ...

MyMovieCollection up to 153 build errors

328 byte By gue22 at 2008-2-12
Quick q before going deeper:Unzipped MyMovieCollection into C:\Dokumente und Einstellungen\gy\Eigene Dateien\Visual Studio 2005\Projects\Moviecollection\MyMovieCollection.vbproj and get up to 153 build errors.WinXPPro sp2 fully patched, VS2003, VB Express, SQLExpress,...Did I fail to install ...

Local data base (.mdf) error

198 byte By Muthu_Krishnan_R at 2008-2-11
While adding a local database (.mdf) file as data source, i am getting an error 'Shared Memory Provider: Parameter is incorrect', I couldn't find any solution for this. Can anyone help me?

DatagridView and access

544 byte By Ant0ine at 2008-2-11
Hello everyone,I would like to display the content of a table from my database. The problem is: my datagridview being selecting all the rows of the table (122000), it takes a few minutes to load.As for an solution, I find this article http://msdn2.microsoft.com/en-us/library/ms171624.aspxI am trying...

VB app. that uses printer

784 byte By B_Free at 2008-2-10
Hello, I'm still rather new at this so I apologize if this information is already up somewhere and I simply haven't found it yet. I'm looking to write a simple VB application that can use the printer to print out lines of text (graphics would be even better), and is able to be deployed on ...

Undoing record changes

936 byte By AlChristoph at 2008-2-10
I have a list box and a set of text boxes bound to a dataSource (or something like that:-) The list box is used to navigate. Everything works just find - add, delete, edit, etc. HOWEVER, I haven't quite figured out how to make the undo button work:-( It will have two modes. 1. If not editing ...

label name from excel form.

233 byte By guest at 2008-2-8
hi i have created a vb entry form and require a label to return a number from a Cell in excel in the correct format excel cell is formated to show 00002. yet label returns 2 i require the following format abcd 00002 Help.

Creating a Windows Service

302 byte By Johngeh at 2008-2-8
In VS .NET 2003, you could create a Windows Service using Visual Basic. This was a great feature and I used it several times. I went to try this in VS 2005 and it doesn't seem to be an option.Will this feature be included in the final version of VS 2005 or am I just not finding it in ...

Drag Drop Outlook MailItem onto ListView

15865 byte By NLARGE at 2008-2-8
Hi.I am trying to dragdrop a outlook email item onto a listview, then save the item to disk as a .msg file but am unable to do so. I am using VS .NET 2003 Academic version, Windows XP.The following is the code I am using. The filename is recieved, but I am unable to read the FileContents ...

Visual Basic 2005 Express Ed. BETA 2

373 byte By JasonD at 2008-2-7
Hello.I was wondering if it's possible to get Visual Basic 2005 Express BETA 2 on CD without having to have a Credit Card in Australia. I have tried the manual and automatic downloads and they don't work for me at all, both at home (not connected to internet) and at work. (I couldn't use the ...

drag and drop to a form lacks functionality

983 byte By dennist at 2008-2-7
1. There is no error catching code in the bindingNavigator toolstrip buttons.2. There is no canceledit button. It's a pain having to add one each time.3. I would like to make my own control that includes not only the canceledit button but all the code I want. I have no experience whatsoever in ...

VB .NET 2005 Express Beta 2

443 byte By cbaldo1 at 2008-2-7
After installing the new BETA 2, I get the following error anytime I try to open a form from a project created with BETA 1:"Could not load type 'Microsoft.VisualStudio.Shell.Interop.IVsRunningDocumentTable2' from Assembly 'Microsoft.VisualStudio.Shell.Interop.8.0, Version 8.0.0.0, ...

Master/detail form

76 byte By Yahya at 2008-2-7
Hi How can I have a master/detail layout on a win form? Thanks Regards

Base Class Events

602 byte By JoeSmugeresky at 2008-2-6
Is there going to be support in 2005 for a MustOverride Event in VB.NET or maybe RaiseEvent MyBase.EventName? As it is now, you cannot raise a base class event in the form of MyBase.EventName. I know the workaround is maybe to add a method in the base class that raises the event but that doesnt ...

VB .NET 2003 Form Scrolling Controls

508 byte By denis123 at 2008-2-6
I have created a form using vb in visual studio 2003 whereby the form is longer than the screen (height 2000) and becomes vertically scrollable.I have placed text boxes throughout the length of the form.The form compiles and debugs with no errors, but when using the form and scrolling to the ...

vs2003 style splitter in vs2005?

430 byte By SplitterQuertion at 2008-2-5
in vs2003 i used to be able to draw up an mdiForm with 3 vertical panels - each panel was docked to the bottom and each panel had a spliter dock=bottom on top. the remaining space above was used to hold child forms.i'm having trouble creating this with in vs2005. can i use the splitter from ...

API Connect to website and transfer XML

434 byte By Jonty at 2008-2-5
I am a novice to VB and have installed Visual Studio 2005.I want to create an interface that establises connection to a server (thru a URL) and sends an XML file through the connection and recieves an output XML file in return.I read I could use WinInet API...but Visual Studio 2005 doesnt have ...

Need to do a comparison on an SQL DATETIME field

455 byte By Amanda at 2008-2-5
Hi,Quick question: I need to know the syntax for comparing a DATETIME field in a SQL database to a control variable in Visual Basic. Here's the psuedocode:If Row.ControlField <> ControlVar ThenWhere Row.ControlField = a SQL DATETIME FieldandControlVar = a variable that is compliant with DATET...