Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2005, 04:17 AM
Authorized User
 
Join Date: Jul 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default ToolBar Help

I Need Help in working with toolbars. How do we know that a Toolbar button has just been pushed and what button has been pushed.



Proud To Be Pinoy
__________________
Proud To Be Pinoy
 
Old April 19th, 2005, 08:13 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there..

you need something like this...

you have the event buttonclick for the toolbar..

then you do something like this (for ex.)

Code:
Select Case Toolbar1.Buttons.IndexOf(e.Button)
    Case 0
    Case 1
    Case 2
End Select
i think that should be a better solution.. but at least this work...

HTH

Gonzalo
 
Old April 19th, 2005, 08:35 PM
Authorized User
 
Join Date: Jul 2003
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, it worked

Proud To Be Pinoy





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to get a Toolbar active Lars Ronnevig Beginning VB 6 0 March 5th, 2007 04:00 AM
About the toolbar momowu0701 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 0 March 1st, 2005 09:23 AM
disabling the toolbar g_srinivas Javascript 6 July 25th, 2004 09:56 AM
Toolbar amantona Crystal Reports 0 May 12th, 2004 09:41 AM
Toolbar sangata VS.NET 2002/2003 2 April 13th, 2004 05:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.