I have a button, (Command1) and i want to start notpad, by clicking this button.
But I don't want to use, the command: shell
So how can i start notepad without using MSDOS, or any other program by clicking this button ? Thanx
Printable View
I have a button, (Command1) and i want to start notpad, by clicking this button.
But I don't want to use, the command: shell
So how can i start notepad without using MSDOS, or any other program by clicking this button ? Thanx
Wanna use API?
By the way, why don't you want to use Shell?
HTH
------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.
well, i dont want to use shell cause, thay disabled MS DOS at my school, and i want to use this VB project at school.
There is actually a good project at http://visualbasic.about.com where you build a text editor in vb... complete with load and save functions, cut, paste, copy, etc...
Check it out:
http://visualbasic.about.com
I must be missing something...what has Shell got to do with DOS?
whell when u use shell, it opens up a dos box, and thats the problem
Err...are you sure? I've never encountered a DOS box. What does the DOS box say (if anything)? Does the program you shelled still execute?
Of course this could happen on versions other than 6 (the only one i know :))
I don't think Shell has anything to do with DOS either.
------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.
can u give me an example using the shell command ?
never mind, i already got it:
Call Shell("c:\windows\notepad.exe", vbNormalFocus)
thanx.
Shell only opens up a dos dialog box if you're opening a dos program with the shell command.