Click here to Skip to main content
15,913,941 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
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 
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 
According to the MSDN documentation all you have to do is repeat the steps I showed you for your lower panel with the upper panel.

1) create a public property for it, with the DesignerSerializationVisibility attribute
2) in the designer copy the EnableDesignMode line in Initialize changing the Control references to those you made in 1)

As far as the controls within those controls are concerned, I have not yet got round to experimenting along those lines. You might be able to repeat the two steps above for them as well, or you might have to change your panels into user controls deriving from Panel and give them their own designer which will use the EnableDesignMode stuff.

The thing is, I found out how to do it by experimenting and that is the best way to learn. Be brave, try things out. Start a new thread in the forum if you get half way and get stuck.

Good Luck! Smile | :)

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

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 
Questionhow to use devcon remove dirver? Pin
iceman861625-Jun-09 14:59
iceman861625-Jun-09 14:59 
AnswerRe: how to use devcon remove dirver? Pin
Henry Minute25-Jun-09 20:28
Henry Minute25-Jun-09 20:28 
GeneralRe: how to use devcon remove dirver? Pin
iceman861628-Jun-09 14:03
iceman861628-Jun-09 14:03 
QuestionHow to add a button to an user control or custom control dynamically? Pin
ice.cool 172924-Jun-09 22:51
ice.cool 172924-Jun-09 22:51 
AnswerRe: How to add a button to an user control or custom control dynamically? Pin
dan!sh 25-Jun-09 1:12
professional dan!sh 25-Jun-09 1:12 

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.