Answer Questions
thahn showing a disposed form
i keep getting a message for the code: Option Explicit On form2 as new form2 Private Sub menuItem1_Click(ByVal sender As _ System.Object,ByVal e As System.EventArgs) Handles _ viewhelp.Click help.Show() End Sub that says "cannot access a disposed object named 'help'". how does that work sonny jim oops, never mind, it's: Private Sub menuItem1_Click(...) Dim form2 as new form2 form2.show() End ...Show All
Marko Mihovilic third-party installer for choice and security
Does vb.net express offer a way for the developer or user to decide where an app would be installed or is a third-party installer necessary If so, any recommendations Hi, rwbogosian, I’m sorry that this aspect of the click-once deployment process is frustrating. Please accept my assurances that engaging the development community is very much on our minds, and much of our daily routine revolves around tha ...Show All
vpborza Sharing classes between solution projects
I have created a VB.NET project (Project1) in a solution and I would like to share some of its classes with a new project (Project2) I am adding to that solution. If I right click on the target project, Project2, and add existing items, and then use 'link file', I am able to add a link to the desired class files residing in Project1. However when building the solution I find that I get errors because Project1 refers to the c ...Show All
Darin Spence Declaring Sub's to gain access from Form to Form
Hi! I'm a newbie in VB programming, and i'm using Visual Studio 2005 edition. I have a project with a main form that calls other forms depending on the option. How can i access Sub's declared on the main form on the other forms, like serial port handler or any other kind of routines i've tried declared the Sub as Public, but it still doesn't work. Thank you If the routines are common to a number of forms then y ...Show All
Piotr Smolanski Winsocket and VB6.0
I am developing code such i want to connect it to server and store the data in server get the stored data from the server to my application i must use Socket programming plz can any one help me code iz given below itz not getting connected Winsock1.RemoteHost = "203.208.144.52" Winsock1.RemotePort = 80 Winsock1.Connect If Winsock1.State = sckConnected Then Label9.Caption = "Connected" Winsock1.SendData Text1.Text & Text2.Text ...Show All
xgbnow VB6 WME Help Files
I am new to programming. I learned how to do it using VB5 CCE from a disk at the local library, and I have just now gotten VB6 Working Model Edition. One of the first things I noticed is that is does not have help files. If there is a place to download these, please tell me!! In addition, I know I wouldn't be able to find this in any help files: Is there a way for the program to add a number to a variable without nesting For example, in a p ...Show All
quinlivan Regarding Commenting in VB
Is there any good reason why multi line commeting is not provided in VB. Thanks AnilG In languages like C++ / C# we do have seperate facility for single line comments ( until end of file ) or multi like using /* */ faciltiy. Why same was not implemented / add in VB. VB has never supported this and with development of better ID environment tools such that it allows blocks of code to be commented in and out by simply select ...Show All
Myron Marston VS 2005 seems unusable for large VB converted project. How do I turn off the background compiler.
VS 2005 seems unusable for large VB converted project. How do I turn off the background compiler. I have a fairly large project that I migrated from VB6 to VS2005. This is the RTM version of VS2005. There are many issues that I need to fix up in the code, but every time I change one line of code, my system runs 100% CPU for 30 seconds. This is not even close to usable. You might think I have a slow machine, but I am runni ...Show All
barloworld help !-Access "memo" type truncated to 50 characters when retrieved via dataset
I have an Access data table with one column being memo format (up 65000 characters). I have a VB .NET prog which sets up a datadapter/dataconnector/dataset. The dataset is bound to a datagrid. What shows up in the datagrid "memo" column is truncated to 50 characters. I did a test of reading the data from the dataset into a richtextbox instead and the same truncation takes place ! -Is this due to a flaw in the wizard's generation of the ...Show All
surferboy how to add vbscript in visual basic 2005
hi friendz, i like to add a piece of WMI script into visual basic 2005. how can i add that piece of code and where can i add. if any tutorials for this kind of problem. then give the link. if anybody know how to add and execute that script then please tell step by step. be'cos i am new to vs2005. thank U. hope i will get answer as so ...Show All
mkrgoede Control Y !!!
What have you people done to Control-Y For the past 10 years that I've used Windows this meant REDO (opposite of UNDO). In VB2005 it deletes a line. SERIOUSLY!!! not funny. Ctrl+Y was Yank line in VB6, so you could argue that we shouldn't have switched it to in VS.NET/VS.2003/VS.2005 Seriously, getting the shortcuts set up in a way that suites everyone is impossible. There are too many users who insist th ...Show All
Kim Hansen Using FileGet to read Array in Structure (VB.NET Express Beta2)
I encounter a problem when using FileGet to read structure that includes an array. The code is: Public Structure Test Dim a() As Integer Public Sub ini() ReDim a(3) End Sub End Structure The following code use FileGet Dim i As Integer Dim te As New Test te.ini() FileGet(1, te, 1) i = te.a(0) The error message is: System.IndexOutOfRangeException was unhandled "Index was outside the bound ...Show All
billlocke REQUEST: IDE Support for AddHandler
The current support for AddHandler is very disappointing, all you get is help for the method and the ability to choose AddressOf for an existing handler procedure. But there is easy way to create a handler. At the moment I declare temporary the same type with WithEvents, create the method with the IDE, and remove the type. Something like the possiblity in C# after += would be very appriciatet. Or have I overlooked a convienient way to creat ...Show All
bynars99 Form Order
I am using VB.net 2005 Express Edition I started a project, Form1, and after a while I decided to add a password form so that you enter a password before you can view Form1, my question is how, when I run the project, do I get the password form to be the start form Just remember that if your password form is your startup form, when you close it, the app will close as well. ...Show All
t.g. Add text to a text box from a module
I'm upgrading a program I wrote in VB6 to VB2005 and am having a problem with updating a text box. I have a module that manages serial port communications. When data is received in the serial port buffer, it should update a text box (txtSerialIn) on a form (frmSerialInOut). Here's the code: Public Sub Handler( ByVal strInMessage As String ) frmSerialInOut.txtSerialIn.Text = strRXData & vbCrLf & frmSerialInOut.txtSerialIn. ...Show All
