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 by Jared

Jared
Wed Jul 12 17:13:21 CDT 2006

.PerformClick as well.. search in object browser to see full info

"Marcos M Ribeiro" <kiko@nospam.barretos.com.br> wrote in message
news:%236IJUMepGHA.1796@TK2MSFTNGP03.phx.gbl...
> 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 by Marcos

Marcos
Wed Jul 12 18:14:36 CDT 2006

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...
> .PerformClick as well.. search in object browser to see full info
>
> "Marcos M Ribeiro" <kiko@nospam.barretos.com.br> wrote in message
> news:%236IJUMepGHA.1796@TK2MSFTNGP03.phx.gbl...
>> 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 by Jared

Jared
Wed Jul 12 21:16:02 CDT 2006

you need to call like this..

form1.ToolStripbutton1.PerformClick

You will not find the toolstrip collection very helpful


"Marcos M Ribeiro" <kiko@nospam.barretos.com.br> wrote in message
news:%23SgA1jgpGHA.756@TK2MSFTNGP05.phx.gbl...
> 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...
>> .PerformClick as well.. search in object browser to see full info
>>
>> "Marcos M Ribeiro" <kiko@nospam.barretos.com.br> wrote in message
>> news:%236IJUMepGHA.1796@TK2MSFTNGP03.phx.gbl...
>>> 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 by Marcos

Marcos
Wed Jul 12 21:39:09 CDT 2006

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...
> you need to call like this..
>
> form1.ToolStripbutton1.PerformClick
>
> You will not find the toolstrip collection very helpful
>
>
> "Marcos M Ribeiro" <kiko@nospam.barretos.com.br> wrote in message
> news:%23SgA1jgpGHA.756@TK2MSFTNGP05.phx.gbl...
>> 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...
>>> .PerformClick as well.. search in object browser to see full info
>>>
>>> "Marcos M Ribeiro" <kiko@nospam.barretos.com.br> wrote in message
>>> news:%236IJUMepGHA.1796@TK2MSFTNGP03.phx.gbl...
>>>> 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
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>