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 / September 2004

Tip: Looking for answers? Try searching our database.

Adding Controls to a User Control at Design Time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Gaines - 01 Sep 2004 19:31 GMT
I posted this to ms.p.d.framework.windowsforms.controls but the only
response was from somebody who had the same problem.

Can anybody here give me any guidance - or suggest a more appropriate
group?

I am building a small control with two panels and a splitter.

When I use the control in designing an app at design time I want to be
able to add this control to my form and then drag other controls on to
it to be contained within the panels.

Although I can drag controls on to it they do not get 'captured' by it.

I added a couple of properties so that the contained controls can be
specified but I would rather go the drag and drop route.

Any pointers or examples that you are aware of?

Many thanks.

Signature

Jeff Gaines - Damerham Hampshire UK
Posted with XanaNews http://www.wilsonc.demon.co.uk/d7xananews.htm

Sijin Joseph - 02 Sep 2004 13:58 GMT
Hi Jeff,

I don't think what you are saying is possible, what you will have to do
is add the textboxes on the usercontrol designer itself, once the
usercontrol is on the form, i don't think it is possible to add controls
to it.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> I posted this to ms.p.d.framework.windowsforms.controls but the only
> response was from somebody who had the same problem.
[quoted text clipped - 16 lines]
>
> Many thanks.
Jeff Gaines - 02 Sep 2004 16:18 GMT
> Hi Jeff,
>
[quoted text clipped - 6 lines]
> http://www.indiangeek.net
> http://weblogs.asp.net/sjoseph

I suspected as much! Looks like I'll have to find another way.

Thanks for your response :-)

Signature

Jeff Gaines - Damerham Hampshire UK
Posted with XanaNews http://www.wilsonc.demon.co.uk/d7xananews.htm


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.