Click here to Skip to main content
       

C#

 
AnswerRe: Connection String in Properties.Settings PinmemberPIEBALDconsult28-Dec-12 14:32 
GeneralRe: Connection String in Properties.Settings PinmemberTheJudeDude28-Dec-12 15:47 
Questionbasic question close and collapse methods Pingroupmehdi.sabet28-Dec-12 3:22 
AnswerRe: basic question close and collapse methods PinmemberMarcus Kramer28-Dec-12 3:29 
GeneralRe: basic question close and collapse methods Pingroupmehdi.sabet28-Dec-12 3:42 
AnswerRe: basic question close and collapse methods PinmemberPIEBALDconsult28-Dec-12 3:33 
Questionset the parent form size according to child form in mdi form PinmemberArun kumar Gautam28-Dec-12 1:12 
AnswerRe: set the parent form size according to child form in mdi form PinmemberMatt U.28-Dec-12 4:16 
In the MDI container form, subscribe to the child form's SizeChanged event:
 
private void NewChildForm()
{
    ChildForm child = new ChildForm();
    child.MdiParent = this;
    child.SizeChanged += new EventHandler(this.childForm_SizeChanged);
}
 
private void childForm_SizeChanged(object sender, EventArgs e)
{
    Form child = sender as Form;
    this.Size = new Size(child.Width, child.Height);
}
 
Something like that should get the job done. Just adjust the "new Size(int, int)" call accordingly.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.

AnswerRe: set the parent form size according to child form in mdi form PinmemberEddy Vluggen28-Dec-12 9:04 
QuestionSelected rows in a gridview Pinmemberrakeshs31227-Dec-12 19:26 
AnswerRe: Selected rows in a gridview Pinmembervanikanc28-Dec-12 6:48 
GeneralRe: Selected rows in a gridview Pinmemberrakeshs31228-Dec-12 18:48 
AnswerRe: Selected rows in a gridview PinmvpAbhinav S28-Dec-12 23:39 
QuestionSliding an Image on another Image PinmemberShubhanshu Pathak27-Dec-12 18:09 
QuestionSerial Port Won't Send While Receiving PinmemberC-P-User-327-Dec-12 15:13 
AnswerRe: Serial Port Won't Send While Receiving PinmvpRichard MacCutchan27-Dec-12 21:45 
GeneralRe: Serial Port Won't Send While Receiving PinmemberC-P-User-328-Dec-12 5:21 
GeneralRe: Serial Port Won't Send While Receiving PinmvpRichard MacCutchan28-Dec-12 5:45 
GeneralRe: Serial Port Won't Send While Receiving PinmemberC-P-User-328-Dec-12 5:59 
GeneralRe: Serial Port Won't Send While Receiving PinmvpRichard MacCutchan28-Dec-12 6:40 
AnswerRe: Serial Port Won't Send While Receiving PinmemberGrooverFromHolland28-Dec-12 7:04 
AnswerRe: Serial Port Won't Send While Receiving Pinmemberjschell28-Dec-12 9:53 
GeneralRe: Serial Port Won't Send While Receiving PinmemberC-P-User-331-Dec-12 10:54 
GeneralRe: Serial Port Won't Send While Receiving PinmemberC-P-User-31-Jan-13 13:35 
GeneralRe: Serial Port Won't Send While Receiving PinmemberC-P-User-31-Jan-13 13:36 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 25 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid