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 / January 2008

Tip: Looking for answers? Try searching our database.

Drag a UserControl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne Garvander - 10 Jan 2008 15:16 GMT
I have made a user control that is full labels.
How do I drag this control unto a form? I envision a windows form with about
three user controls, each user control has 5-10 labels.
User controls works great in ASP.Net, but seems less flexible on a windows
form.
What am I doing wrong?
Signature

Arne Garvander
Certified Geek
Professional Data Dude

Mike Powell - 10 Jan 2008 16:09 GMT
Hi Arne,
To drag your control onto a form you need to add it to the toolbox (right
click on toolbox, choose items, browse then point to your dll).
Just out of interest why create a control that is a series of labels, and
how do you fill them with data (this can affect performance)?

Mike Powell
Ramuseco ltd .Net Consulting

>I have made a user control that is full labels.
> How do I drag this control unto a form? I envision a windows form with
[quoted text clipped - 3 lines]
> form.
> What am I doing wrong?
Herfried K. Wagner [MVP] - 11 Jan 2008 01:16 GMT
"Arne Garvander" <ArneGarvander@discussions.microsoft.com> schrieb:
>I have made a user control that is full labels.
> How do I drag this control unto a form? I envision a windows form with
> about
> three user controls, each user control has 5-10 labels.

The user control should be available after compiling in the first category
of the toolbox.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>


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.