Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2006

Tip: Looking for answers? Try searching our database.

ToolBar Click event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcos M Ribeiro - 12 Jul 2006 19:43 GMT
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

Jared - 12 Jul 2006 23:13 GMT
.PerformClick as well.. search in object browser to see full info

> 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
Marcos M Ribeiro - 13 Jul 2006 00:14 GMT
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

> .PerformClick as well.. search in object browser to see full info
>
[quoted text clipped - 3 lines]
>> Marcos
>> PS: Pls send a copy to kiko@barretos.com.br
Jared - 13 Jul 2006 03:16 GMT
you need to call like this..

form1.ToolStripbutton1.PerformClick

You will not find the toolstrip collection very helpful

> I'm trying something like this
>
[quoted text clipped - 17 lines]
>>> Marcos
>>> PS: Pls send a copy to kiko@barretos.com.br
Marcos M Ribeiro - 13 Jul 2006 03:39 GMT
Thanks
I'll explore it
I found another way (not that elegant)
ToolBar1_ButtonClick(ToolBar1, New
ToolBarButtonClickEventArgs(ToolBar1.Buttons(3)))

> you need to call like this..
>
[quoted text clipped - 23 lines]
>>>> Marcos
>>>> PS: Pls send a copy to kiko@barretos.com.br

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.