Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

never used vb5 before, please help 2

Status
Not open for further replies.

mycomputerisjunk

IS-IT--Management
Aug 5, 2001
1
US
all i need is to have a one button that when clicked it opens notepad. also is there any way to specify how many times it will open up notepad for the single click of the button?
thanks
 
Okay follow these steps

One Make new project
Two "Draw" A button of the form
Three double click the butotn
Four type shell("C:\windows\notepad.exe")

Five to make it open more than one repeat 4

Regards Brad,
Free mp3 player,games and more.
 
To open notepad several times, add a textbox to your form name it txtnumber and there you will place the number of times u want it to open.

Then just

For i=1 to txtnumber

shell("C:\windows\notepad.exe")

Next i

You should also test if the txtnumber.Value is an integer first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top