PC Review


Reply
Thread Tools Rate Thread

controls & containers

 
 
gerry
Guest
Posts: n/a
 
      18th Dec 2004
I would like to do either one of two things :
1) restrict the types of objects that can be dropped on a ContainerControl
based class
- implement AllowDrop
2) add full container capabilities to a Control based class
- implement IControlContainer

unfortunately neither AllowDrop or IControlContainer are available in cf :
(

why ? I now have a set of custom controls that have common customizations
and descend from either Control or ContainerControl. Since multiple
inheritance is not an option, I am currently implementing the common code
through an interface & helper class which, to me, is a really ugly way to do
things requires adds almost as much common code to work with the helper
class as it factors out. I was hoping to be able to derive all controls
from a common base class. BUT I don't see how to derive a ContainerControl
from a Control nor how to make a selective ContainerControl.

gerry


 
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
Using controls for sqlparameters from different containers asp.Net =?Utf-8?B?RHluYW1v?= Microsoft Dot NET 2 13th Jul 2006 03:15 PM
Containers =?Utf-8?B?THVpcw==?= Microsoft Access VBA Modules 1 23rd Feb 2005 03:12 PM
Containers Chris I Microsoft Windows 2000 Group Policy 1 27th Dec 2004 03:53 PM
New Containers An opinion about everything Microsoft Windows 2000 4 11th Feb 2004 07:06 PM
New Containers An opinion about everything Microsoft Windows 2000 0 10th Feb 2004 08:11 AM


Features
 

Advertising
 

Newsgroups
 


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