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 / April 2005

Tip: Looking for answers? Try searching our database.

Adding Reference to User Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
C# Learner - 04 Apr 2005 21:37 GMT
I added a custom control to my project (Project -> Add User Control) and it
won't show up under 'My User Controls' in the Toolbox.

How do I get it to show up?

(I know I could get it to show by right-clicking over the Toolbox, choosing
'Add/Remove Items...', and then browsing for my project's executable - but
if I added the "debug" executable, say, I fear I'd have to redo this every
time I build a "release" executable.)
Stoitcho Goutsev \(100\) [C# MVP] - 04 Apr 2005 23:56 GMT
As long as a control inherits from the UserControl class it should showup in
the toolbox.
I guess you don't add your own designer, do you?

It is possible that the toolbox may not catch up instantly, but the user
control has to show up as soon as you open a form or other control in the
designer.

Keep in mind that the user control is not available in the toolbox (dimmed
usually) if the active control in the designer is the usercontrol itself. In
other words you can't add the control to itself.

Signature

Stoitcho Goutsev (100) [C# MVP]

>I added a custom control to my project (Project -> Add User Control) and it
> won't show up under 'My User Controls' in the Toolbox.
[quoted text clipped - 6 lines]
> if I added the "debug" executable, say, I fear I'd have to redo this every
> time I build a "release" executable.)
Hernando Del Toro - 05 Apr 2005 18:01 GMT
Hi there:

VS .NET 2003 Requieres that you show up your control first in the designer,
(by double-clicking the control file) in order for it to realize it is a
control so it appears on the "My User Controls" Toolbox.

I hope VS.NET 2005 fix this behaviour.

Nando

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.