The Artima Developer Community
Sponsored Link

Web Buzz Forum
Getting .NET Button ListBar control to work

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Cheah Chu Yeow

Posts: 883
Nickname: redemption
Registered: Jun, 2003

Cheah Chu Yeow is no one of any importance
Getting .NET Button ListBar control to work Posted: Mar 9, 2004 12:52 AM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Cheah Chu Yeow.
Original Post: Getting .NET Button ListBar control to work
Feed Title: redemption in a blog
Feed URL: http://blog.codefront.net/xml/rss20/feed.xml
Feed Description: ramblings of a misfit - web development, Mozilla, Firefox, Thunderbird, CSS, programming
Latest Web Buzz Posts
Latest Web Buzz Posts by Cheah Chu Yeow
Latest Posts From redemption in a blog

Advertisement

Dave (DarkAngel) has responded to my call for help regarding the .NET Button ListBar Control and has kindly allowed me to post the solution here. Dave is the man really - he went through the trouble of grabbing the control, loading up VS.NET and working through it step by step with me in his email. All that for a stranger. I love you Dave!

The problem I had was trying to import the .NET Button ListBar Control into my VS.NET Toolbox. The instructions said to import the ButtonListBar.vb file into the project and it should work, but it doesn't in Visual Studio.NET 2003. I think that is the reason it didn't work (that it is VS.NET 2003 instead of just VS.NET).

Opening the ButtonListBar.vb file in the Designer threw out an error (see the call for help entry). Dave fixed that with this solution (also via email):

... move the region event argument classes to the end of the ButtonListBar.

He went on to help me compile the source files into a DLL, which I'm familiar with using for importing controls. Below are his instructions (slightly paraphrased). The credit goes solely to Dave (DarkAngel) - I'm merely reproducing it for the benefit of anyone who next comes across this problem.

  1. Open up Visual Studio .NET (Visual Studio .NET 2003 to be exact)
  2. Create a new project by clicking File -> New Project (I'm using Visual Basic, so I chose Visual Basic Project).
  3. Choose "Windows Control Library".
  4. What we've done so far is just create a control library project which is ideal for putting new controls in. This will build to a DLL.
  5. Remove UserControl1.vb (the default file VS.NET creates) from the Solution Explorer (it's unnecessary).
  6. Right click the project in the solution explorer and select Add -> Add existing item
  7. Add the ButtonListBar.vb file in the control source files downloaded.
  8. Build the project (choose to build for "Release").
  9. The compiled DLL will then be in the bin/ directory of the project folder. You now have the ButtonListBar control in DLL form. All the remains is to add this control into the Toolbar of the project in which you want to use it.

Using the control:

  1. In the project you want to add the toolbar to, right-click your Toolbox and select "Add/Remove items".
  2. Click "Browse" under the .net framework components tab.
  3. Browse to the location of the DLL we just created and double click it.
  4. Click OK to dismiss the Add/Remove items dialog.
  5. The ButtonListBar control should now be the bottom entry on your list. (You can right-click and sort alphabetically if you like).

Read: Getting .NET Button ListBar control to work

Topic: ALL YOUR BASE ARE BELOW TO BUDWEISER Previous Topic   Next Topic Topic: My mad vision of the future

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use