Click here to Skip to main content
15,914,071 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 1:22
Henry Minute30-Jun-09 1:22 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk30-Jun-09 2:30
honey.rpk30-Jun-09 2:30 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 5:51
Henry Minute30-Jun-09 5:51 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
ice.cool 172930-Jun-09 20:23
ice.cool 172930-Jun-09 20:23 
GeneralRe: How to make a control as a child to user control but not for a form? [modified] Pin
Henry Minute30-Jun-09 6:26
Henry Minute30-Jun-09 6:26 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
dan!sh 30-Jun-09 6:39
professional dan!sh 30-Jun-09 6:39 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 8:20
Henry Minute30-Jun-09 8:20 
Generalattn. Henry : small suggestion : Re: How to make a control as a child to user control but not for a form? [modified] Pin
BillWoodruff30-Jun-09 19:11
professionalBillWoodruff30-Jun-09 19:11 
Hi Henry,

I couldn't wait to try out your code today ! This is an area I'm actively studying and frankly have not found the MSDN examples on this very grokkable. The one book I have on hand that is very useful is Matthew McDonald's book on Pro WinForms and Controls 2.0, chapters 13, and 26, but that's dated now.

I think your solution provides an elegant way to construct usercontrols with container sub-components some of which can function as design-time containers, and others of which can't. Much better than the awkwardness of the idea I came up which would have required building such critters at design-time on a form by individually placing each element as a separate UserControl.

One very small suggestion : only setting the text in the Label at design-time will NOT allow design-time changes to persist at run-time; right now the Load event called at run-time will over-write any changes.

fyi : this is working fine in VS 2010 beta.

Since starting to work on this I've come across all kinds of programming sites where people are posting questions complaining that 'ControlDesigner doesn't show up : you would think MS would do somthing to automatically hook in the System.Design.dll when you declared your usage of the System.Windows.Forms.Design library (ha, ha, right, in the "ideal" world).

Again, thanks for the "lesson."

best, Bill

"Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

modified on Wednesday, July 1, 2009 5:37 AM

GeneralRe: attn. Henry : small suggestion : Re: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 22:57
Henry Minute30-Jun-09 22:57 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
BillWoodruff30-Jun-09 9:07
professionalBillWoodruff30-Jun-09 9:07 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk30-Jun-09 18:55
honey.rpk30-Jun-09 18:55 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk30-Jun-09 19:46
honey.rpk30-Jun-09 19:46 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 22:48
Henry Minute30-Jun-09 22:48 
General[Message Deleted] Pin
ice.cool 17291-Jul-09 0:00
ice.cool 17291-Jul-09 0:00 
GeneralRe: Thanks for solution Pin
Henry Minute1-Jul-09 0:20
Henry Minute1-Jul-09 0:20 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk1-Jul-09 2:37
honey.rpk1-Jul-09 2:37 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute1-Jul-09 4:20
Henry Minute1-Jul-09 4:20 
General[Message Deleted] Pin
ice.cool 17291-Jul-09 18:59
ice.cool 17291-Jul-09 18:59 
GeneralRe: How to reduce size of usercontrol in order to make it exhibit expandable and collapsable features? Pin
Henry Minute1-Jul-09 22:35
Henry Minute1-Jul-09 22:35 
AnswerRe: How to make a control as a child to user control but not for a form? Pin
BillWoodruff29-Jun-09 12:43
professionalBillWoodruff29-Jun-09 12:43 
QuestionA small help Pin
ice.cool 172928-Jun-09 21:10
ice.cool 172928-Jun-09 21:10 
Questionneed help Pin
Bahram.Zarrin27-Jun-09 5:47
Bahram.Zarrin27-Jun-09 5:47 
AnswerRe: need help Pin
Luc Pattyn27-Jun-09 6:07
sitebuilderLuc Pattyn27-Jun-09 6:07 
QuestionHow to unbound a databound container in order to capture other controls or to make other controls to act according to designed custom control developed using containers? Pin
ice.cool 172925-Jun-09 22:54
ice.cool 172925-Jun-09 22:54 
AnswerRe: How to unbound a databound container in order to capture other controls or to make other controls to act according to designed custom control developed using containers? Pin
dan!sh 26-Jun-09 18:56
professional dan!sh 26-Jun-09 18:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.