PC Review


Reply
Thread Tools Rate Thread

Creating a control that acts as a container in the vs designer

 
 
=?Utf-8?B?UFZpY2tlcnM=?=
Guest
Posts: n/a
 
      27th Aug 2004
I am trying to develop a scrollable panel control similar to what is provided
in the desktop framework (via the ScrollableControl class).
My control would consist of a panel and two scrollbars.
When working with my control in a consuming project I want to be able to
allow controls to be dragged onto the child panel in the designer. How to do
this is not obvious to me as by default nothing can be dragged onto my
control of the child panel.
Any clues as to how to do this would be greatly appreciated.
 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      27th Aug 2004
Take a look at the code for the GroupBox control in the Smart Device
Framework:-
http://www.opennetcf.org/sourcebrows...ms/GroupBox.cs

This is a container control which allows other controls to be added at
design time. There shouldn't be a great deal of work required, but your
control should derive from ContainerControl.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/...ity/newsgroups

"PVickers" <(E-Mail Removed)> wrote in message
news:5367452B-610F-43D8-8503-(E-Mail Removed)...
>I am trying to develop a scrollable panel control similar to what is
>provided
> in the desktop framework (via the ScrollableControl class).
> My control would consist of a panel and two scrollbars.
> When working with my control in a consuming project I want to be able to
> allow controls to be dragged onto the child panel in the designer. How to
> do
> this is not obvious to me as by default nothing can be dragged onto my
> control of the child panel.
> Any clues as to how to do this would be greatly appreciated.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: After creating custom container control, control cannot be added to form Michael Nemtsev [MVP] Microsoft C# .NET 1 14th Nov 2007 12:48 PM
Custom control container behavior in designer =?Utf-8?B?V2lsbGlhbSBTdWxsaXZhbg==?= Microsoft Dot NET Framework 2 8th Jul 2005 01:48 PM
Custom control container behavior in designer =?Utf-8?B?V2lsbGlhbSBTdWxsaXZhbg==?= Microsoft Dot NET Framework Forms 3 7th Jul 2005 05:46 PM
Creating a custom container control bram@fokke.net Microsoft Dot NET Framework Forms 2 12th Mar 2005 04:39 PM
Creating a container control designer =?Utf-8?B?RGFubnkgdmFuIEthc3RlZWw=?= Microsoft Dot NET Framework Forms 0 4th Oct 2004 11:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:00 AM.