all groups > vb.net controls > july 2006 >
You're in the

vb.net controls

group:

ToolBar Click event


ToolBar Click event Marcos M Ribeiro
7/12/2006 3:43:28 PM
vb.net controls: 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 kiko@barretos.com.br


Re: ToolBar Click event Marcos M Ribeiro
7/12/2006 8:14:36 PM
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

"Jared" <jared@velociynetx.com.au> escreveu na mensagem
news:e%234ZkBgpGHA.4424@TK2MSFTNGP05.phx.gbl...
[quoted text, click to view]

Re: ToolBar Click event Marcos M Ribeiro
7/12/2006 11:39:09 PM
Thanks
I'll explore it
I found another way (not that elegant)
ToolBar1_ButtonClick(ToolBar1, New
ToolBarButtonClickEventArgs(ToolBar1.Buttons(3)))

"Jared" <jared@dfidfoe.com> escreveu na mensagem
news:12bbb754m2sugf6@corp.supernews.com...
[quoted text, click to view]

Re: ToolBar Click event Jared
7/13/2006 12:00:00 AM
you need to call like this..

form1.ToolStripbutton1.PerformClick

You will not find the toolstrip collection very helpful


[quoted text, click to view]

Re: ToolBar Click event Jared
7/13/2006 12:00:00 AM
..PerformClick as well.. search in object browser to see full info

[quoted text, click to view]

AddThis Social Bookmark Button