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 :confused:
Printable View
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 :confused:
something like thisVB Code:
Button1.PerfumeClick()
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
Hello Pirate,
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 tabsCode:Button1.PerfumeClick()
Thank you.
Any of these should work .
VB Code:
Me.Button1_Click(sender, e) 'or Me.Button1_Click(Me, e) 'or Me.Button1_Click(Nothing, Nothing)
I didn't know that Buttons could click Perfume bottles. :pQuote:
Originally posted by Pirate
something like thisVB Code:
Button1.PerfumeClick()
Thank you guys for you help. :D
lol ...............:D :DQuote:
Originally posted by mendhak
I didn't know that Buttons could click Perfume bottles. :p
I meant this one :sick::sick:
VB Code:
me.Button1.PerformClick
Hi,
" didn't know that Buttons could click Perfume bottles. "
Microsoft had to include it cos VB.NET coding stinks:wave: