My app runs the Shell function quite a few times and requires a number of files that are essential for the app's calculations. In Shell, I give the app the specific path to each file.
RetVal = Shell("C:\program files\RequiredFile.exe", 0)
But I want to be able to distribute this...
I do have the cancel property set to True. I have set the Cancel button's click event to Unload the form, while the OK button's click event is to .hide the form. The textbox is initially blank. I type "blah", hit OK. Load the form, then I delete "blah" and type in its...
I have two forms, a main one and a sub one. You click a button on the main to launch the sub. Now, on the sub is a textbox and two command buttons, OK and Cancel. When I type "blah" into the textbox and hit OK, the sub form closes. If I launch it again, the textbox displays...
JohnYingling:
I've been trying to use your code. I put it into a bas module that's in the same project group as the form I'm using, and I've typed in the command just as your code says:
---------------------------------------
Call ShellAndWait("C:\foo\bar.exe", 0)...
Hi, I've got a VB5 program that has a number of Shell functions that run a DOS program. Originally, I had problems with it because, as you probably know, the statements following the shell function are executed whether the shell function completed its calculations or not. As a result, I...
A vb program starts. It runs through its calculations, and sometime at a certain arbitrary point the program pauses for a few seconds, say 2.5, and then continues until it finishes.
Is there a way to do this?
I'm reading lines in a text file and using the values. I am reading one value on one line, and two values on another line. I'm a little confused on how the code should look.
Should it look like this?
------------------------------------------------------------
Select Case LineNumber...
Hello, I'm new at coding, but in less than 3 weeks I converted a QuickBasic program to Visual Basic 5. So I guess I have the hang of it.
Question: Is there a way to run a VB program, then have a command in the program that tells it to execute a completely different program, and then use the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.