|
-
Jun 10th, 2004, 11:52 AM
#1
Thread Starter
Member
Button Event help
Hello,
Need some help on how to trigger Button click event. I have to two buttons Button1 and Buttton2. I want to trigger click event in Button1 when I click Button2
Please help
-
Jun 10th, 2004, 12:10 PM
#2
Sleep mode
-
Jun 10th, 2004, 12:16 PM
#3
Go to the handler for the Button1 Click event.
On the sub header line, at the end, it should say somethign like:
"...Handles Button1.Click"
Add ", Button2.Click" to the end of it.
Now Button1 and Button2 will call the same event handler for the click event.
TG
-
Jun 10th, 2004, 12:49 PM
#4
Thread Starter
Member
Hello Pirate,
Code:
Button1.PerfumeClick()
Works good if the buttons are on the form .But if the buttons are on the different tabs it does not work. Do you now how to make it work for buttons on different tabs
Thank you.
-
Jun 10th, 2004, 11:00 PM
#5
Sleep mode
Any of these should work .
VB Code:
Me.Button1_Click(sender, e)
'or
Me.Button1_Click(Me, e)
'or
Me.Button1_Click(Nothing, Nothing)
-
Jun 11th, 2004, 12:12 AM
#6
Originally posted by Pirate
something like this
I didn't know that Buttons could click Perfume bottles.
-
Jun 11th, 2004, 10:02 AM
#7
Thread Starter
Member
Thank you guys for you help.
-
Jun 11th, 2004, 10:24 AM
#8
Sleep mode
-
Jun 11th, 2004, 06:56 PM
#9
PowerPoster
Hi,
" didn't know that Buttons could click Perfume bottles. "
Microsoft had to include it cos VB.NET coding stinks
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
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
|