Recent update: 2008-3-21
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 ...
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...
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 ...
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 ...
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
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 ...
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 ...
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 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 ...
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.
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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. ...
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 ...
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 ...
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...
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 ...
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 = ...
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 ...
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 ...
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 ...
How can you programmatically determin if a dll is an assembly, win32 or activex?
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 ...
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 ...
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 ...
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 ...
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" ...
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 ...
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 ...
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 ...
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?
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...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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, ...
76 byte By
Yahya at 2008-2-7
Hi How can I have a master/detail layout on a win form? Thanks Regards
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 ...
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 ...
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 ...
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 ...
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...