|
-
Sep 26th, 2000, 04:31 AM
#1
Thread Starter
Addicted Member
I have scheduled my program using the windows scheduler and I want to know how I can get the command button to automatically click when the program starts. Any help is greatly appreciated.
Thanks
JK
-
Sep 26th, 2000, 04:37 AM
#2
Lively Member
Just by launch this code
Code:
MyCommandButton_Click
in your load or activate event (if your command button's name MyCommandButton)
-
Sep 26th, 2000, 04:38 AM
#3
Fanatic Member
change
Private Sub Command1_Click()
to
Public Sub Command1_Click()
and call Command1_Click() when you load the program
*this isn't the right way to go about this, but it will do the job.
You would be better off putting the code into class modules, and calling the methods from switches from the command line, using the Command() object.
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Sep 26th, 2000, 04:45 AM
#4
Thread Starter
Addicted Member
Great
-
Sep 26th, 2000, 06:11 AM
#5
You may also use the Value property of the CommandButton.
Code:
Command1.Value = True
The above code will raise the Click event of the button.
Best regards
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
|