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 / Design Time / June 2004

Tip: Looking for answers? Try searching our database.

UserControls ToolBox Category?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
android - 11 Jun 2004 19:44 GMT
I have created a UserControl and would like to change the toolbox category that it appears under in Visual Studio? As in it currently appears in "My User Controls", how can I do this?

Also does the ToolboxBitmap attribute work with UserControls, I have tried:

[ToolboxBitmap(typeof(CronSchedulerComponentConfiguration), "BitmapIcon.bmp")]

but it does not work, anybody know how to get this to work?

Thank you
Ying-Shen Yu[MSFT] - 12 Jun 2004 08:53 GMT
Hi Android,

Unfortunately, the current behavior is the UserControl document designer
will add the UserControl derived classes into the "My User Controls"
category. And the ToolBoxItem always uses the "UserControl" bitmap. There
are no options to customize this behavior.

I'm not clear why you need customize this behavior? To my understanding,
this feature is mainly designed to help develop a UserControl, so you
needn't remove and re-add the usercontrol to the toolbox after rebuilding.
If you need use these UserControl in some other projects, you may create a
new category in the Toolbox and add the usercontrol by "Add/Remove Items..."
command, then the ToolboxItem, ToolboxBitmap ToolboxItemFilter attributes
should work in that case.

Does it answer your question?
Please feel free to reply this thread, if you have anything unclear about
this issue.

Have a nice day!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.

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.