Answer Questions
crystaliron Run an external executable file.
I am a beginner and am using VB 2005 Express. I want to run an external executable file named "setup.exe." I cannot figure out how to do this. I tried Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FileOpen(1, "setup.exe", OpenMode.Output, OpenAccess.Default, OpenShare.Shared) End Sub If I use that I get the following exception: Access to path 'C ...Show All
JMicke How do you repaint graphics after another form clears it?
I have created a simple example of a problem that I am having in a larger application. There are two forms and a button on the first form shows the second form using the ShowDialog method. When the second form exits (sets itself not visible) the first form writes text in a picture box saying the second form exitted. If the second form is positioned over the first form when you press the exit button, the text displayed in the picture box is cl ...Show All
mshafiq dataset won't save back to database
hi all i have created an SQL db containing 1 table within VB 2005 express. i then created a datasource to connect to the DB. A dataset was then created. i dragged the dataset onto my "Form1.vb" and bindingsource, tableadapter and binding navigator were then created. i then pressed f5 to run. I can nvavigate through the records and create new one's but when i click on the save icon and then exit, the new records are not written back to the DB ...Show All
zorann Startup object - Sub Main or Form
Hi all, I would like to know the differences between using Form vs Sub Main as startup object. Which is best way to start the application What are the pros and cons of using these methods. Thanks. Nitin. Hi. I think there is no pros or cons. It all depends what you need: Need a GUI for an small program Starting up with a form may do the work. Don't need a GUI at all Easy: Startup with ...Show All
happy we tod Posting Messages in Visual C++ 6.0 - Reading Messages in Visual Basic .Net 2003
What I am trying to do is post a message using C++ and reading that message from VB. This code is what is being used for the C++ side UINT wm_RinTinTin; wm_RinTinTin = RegisterWindowMessage( ".\\Test" ); PostMessage( HWND_BROADCAST, wm_RinTinTin, 10, NULL ); This is the code on the VB side Dim mqPath As String = ".\Test" Dim mq As MessageQueue = New MessageQueue(mqPath) Try Dim m As Message = m ...Show All
brian7339 Creating a "Flashcard" program 4 kids
Hi all, I am taking beginning VB in college and I am creating window apps rite now, I would like to do a side project. The side project would help my kid on math, what it is is a math "Flash card" type program , what im trying to do is have program create random numbers like " 4 x 4 = " or " 10 + 5" that type of thing, I have looked thru my text book "Programming in Visual Basic .Net" ( its VB 2003.net vers that I am using) and only example they ...Show All
Carlos Tortajada VS 2005 IDE Unresponsive
We had originally installed Beta 2 of the product which ran better than expected. After using the tool from MS to uninstall the beta software we then installed VS2005 Final which we downloaded through our msdn subscription. The IDE becomes just about unusable. Not only that but it pretty much renders the computer useless while it eats up CPU cycles. This occurs during the following conditions: 1.) We make a small change in code and the edi ...Show All
Sean K. Campbell Help.
How do I create a grid of pictureboxes (25 x 25) on Visual Basic 2005 and auto-name them pbx(row)_(column) for the picture boxes It is to slow and hard to manually rename all 625 of them. Ok question answered, thanks. New question: OK, I ran into another problem. I want it be so that if I click the picture box with the person in it, you can move him by clicking on another tile. How do I do this (I tried (got from Dustin_H 's sample code) : ...Show All
Peter Gissel Trying to update a datatable
I am completely frustrated… Trying to help a friend. Here is what I have been trying to do.. I am a noob at visual studio. I am setting up an inventory database using VB as the front end. I have setup an accounts table, product table. These I can view edit, delete, and ad records to fine. I am trying to make an invoice. I have set up the following tables: tblInvoice ...Show All
Kelvin Lush Wich array type???
Hi I would like to make an array of some sort, with these things: key(int),Name(String),adress(string),amount(int) ... What kind of array can i use to make this type of data collection It should have some of the same qualities of the dictionary array where you search by the key. Unfortunately the dictionary can only store two values.. You can create a small class to hold the individual items: ...Show All
hantana Where is Clear? How can I clear all checks in a checkLISTBOX with out a loop?
Why did they get rid of clear. I have a checkbox with 50 items. I want the user to be able to reset the selected checked items to none. I need to be able to clear the selecteditems in a checkbox. Any ideas besides doing a loop Thanks Theresa I tried that it doesn't remove the physical checkmarks just clears the selected collection. tattoo wrote: I thi ...Show All
Seericssop MSScriptcontrol And VB 2005
When i try to do an addobject through the Microsoft Scriptcontrol like... Scriptcontrol1.addobject("Form",Me) Scriptcontrol1.addobject("Form",Me,True) Scriptcontrol1.addobject("Form",ctype(Me,Form),True) it just makes an "Specified cast is not valid" i would realy appreciate some help i fell like i have tryed everything posible to make it work Huy - this is not related to windows forms (I'm ass ...Show All
innivodave CREATING MODULES
I AM TRYING TO USE A MODULE TO CALL SEVERAL FORMS IN VB2005 EXPRESS. THE PROGRAM LOOKS LIKE THIS: MODULE MODULE1 DIM form1 As New Form1 DIM form2 As New Form2 Sub Main() MsgBox( " This is module" ) ...Show All
blago Creating Arrays
I have an array that is filled with strings, about 250 to be approximate. Now this is tons of typing as you might think. I already have all the strings in a text file, one string per line. Is there a way of filling the array with the strings from the file. I want each line in the text file to be a seperate value in the array. So, line 1 in the text file would be value 0 in the array, line 2 would be value 1 and so on. Thanks. this is w ...Show All
PeterJausovec numeric calculations problems
Hi guys, I have a problem in working out some calculations within a form. My form is called, claddagh_database, which is linked to data from an access database using Jet 4.0 I have some fields with money values in, Total value inc VAt, Deposit, Stage Payment & Balance Payment. In access I had a field called Money Due, which was calculated using the expression Sum=([Total Value Inc Vat]-[Deposit]-[Stage Payment]-[Balance Payment] This t ...Show All
