Using Visual Basic 6? How to?

Can somebody instruct me on VB6? I want to make a program that simply opens the command prompt, can someone help me out?



Thanks
 
Use a command called shell if you want to run a program. To open a command prompt you could do shell("command") or shell("cmd"), I think the quotes are needed but I don't remember. Either one will open almost the same program, command is closer to a DOS emulator than cmd is.
 
How do I export the file out of Visual Basic and then Execute the icon. When I export I get an FRX file and an FRM file, I have never seen these before, how do I turn them into .exe?
 
I think it's under the file menu, it says make Form1.exe or build form1.exe or something like that. When you export all you're getting is text, open the frm in notepad, you'll see all the code that VB puts in when you draw buttons and such.
 
Oh you're using vba. That's different, I don't think you can build an exe from it, it's supposed to be used as a sort of advanced macro editor.
 
You have to buy regular VB (probably as part of visual studio, I don't know if it's available on it's own) or use VB 2005 Express Edition or whatever it's called. The express version is a free download from MS.
 
I have Visual Basic 2005 Express now. How do I make a .exe file? There is nothing like that under File, there is a Build menu though.


Thanks for help man
 
Code:
Private Sub Form_Load()
Call Shell("cmd", vbNormalFocus)
End
End Sub

probably as part of visual studio, I don't know if it's available on it's own
it is (provided you can find it)
 
Back
Top