?
Solved

looping through buttons in toolbar vb.net

Posted on 2006-04-12
1
Medium Priority
?
330 Views
Last Modified: 2006-11-18
Hello experts whats the best way to loop through buttons in a toolbar.  Could some one explain using a for each loop? Below I am using a for loop with an integer it works, but I would like to know how using a for each.

  For x As Integer = 0 To ToolBar1.Buttons.Count - 1
                    ToolBar1.Buttons(x).Enabled = True
                Next
0
Comment
Question by:tentavarious
1 Comment
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 500 total points
ID: 16440118
For Each x As ToolBarButton In ToolBar1.Buttons
            x.Enabled = True
        Next
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question