|
-
Jan 28th, 2000, 01:14 AM
#1
Thread Starter
New Member
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
-
Jan 28th, 2000, 01:21 AM
#2
Fanatic Member
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.
-
Jan 28th, 2000, 01:24 AM
#3
Thread Starter
New Member
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.
-
Jan 28th, 2000, 01:40 AM
#4
New Member
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
-
Jan 28th, 2000, 03:48 AM
#5
PowerPoster
I must be missing something...what has Shell got to do with DOS?
-
Jan 28th, 2000, 07:35 AM
#6
Thread Starter
New Member
whell when u use shell, it opens up a dos box, and thats the problem
-
Jan 28th, 2000, 07:57 AM
#7
PowerPoster
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 )
-
Jan 28th, 2000, 10:00 AM
#8
Fanatic Member
I don't think Shell has anything to do with DOS either.
------------------
Visual Basic Programmer
------------------
PolComSoft
You will hear a lot about it.
-
Jan 28th, 2000, 06:05 PM
#9
Thread Starter
New Member
can u give me an example using the shell command ?
-
Jan 28th, 2000, 06:08 PM
#10
Thread Starter
New Member
never mind, i already got it:
Call Shell("c:\windows\notepad.exe", vbNormalFocus)
thanx.
-
Jan 29th, 2000, 12:49 PM
#11
Hyperactive Member
Shell only opens up a dos dialog box if you're opening a dos program with the shell command.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|