ToolBar Click event

  • Thread starter Thread starter Marcos M Ribeiro
  • Start date Start date
M

Marcos M Ribeiro

On a regular button I can use the PerformClick method
How to perform the same effect on a Tollbar Button?
Thanks
Marcos
PS: Pls send a copy to (e-mail address removed)
 
I'm trying something like this

ToolBar1.Buttons(3).PerformClick()

And getting a sintax error because

PerformClick is not a member of System.Windows.Forms.ToolBarButton

What am I doing wrong?

Thanks

Marcos
 
you need to call like this..

form1.ToolStripbutton1.PerformClick

You will not find the toolstrip collection very helpful
 
Thanks
I'll explore it
I found another way (not that elegant)
ToolBar1_ButtonClick(ToolBar1, New
ToolBarButtonClickEventArgs(ToolBar1.Buttons(3)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top