Click here to Skip to main content
12,830,888 members (43,865 online)
   

C#

 
AnswerRe: Connection String in Properties.Settings Pin
PIEBALDconsult28-Dec-12 15:32
memberPIEBALDconsult28-Dec-12 15:32 
GeneralRe: Connection String in Properties.Settings Pin
TheJudeDude28-Dec-12 16:47
memberTheJudeDude28-Dec-12 16:47 
Questionbasic question close and collapse methods Pin
mehdi.sabet28-Dec-12 4:22
groupmehdi.sabet28-Dec-12 4:22 
AnswerRe: basic question close and collapse methods Pin
Marcus Kramer28-Dec-12 4:29
memberMarcus Kramer28-Dec-12 4:29 
GeneralRe: basic question close and collapse methods Pin
mehdi.sabet28-Dec-12 4:42
groupmehdi.sabet28-Dec-12 4:42 
AnswerRe: basic question close and collapse methods Pin
PIEBALDconsult28-Dec-12 4:33
memberPIEBALDconsult28-Dec-12 4:33 
Questionset the parent form size according to child form in mdi form Pin
Arun kumar Gautam28-Dec-12 2:12
memberArun kumar Gautam28-Dec-12 2:12 
AnswerRe: set the parent form size according to child form in mdi form Pin
Matt U.28-Dec-12 5:16
memberMatt U.28-Dec-12 5: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 Pin
Eddy Vluggen28-Dec-12 10:04
memberEddy Vluggen28-Dec-12 10:04 
QuestionSelected rows in a gridview Pin
rakeshs31227-Dec-12 20:26
memberrakeshs31227-Dec-12 20:26 
AnswerRe: Selected rows in a gridview Pin
vanikanc28-Dec-12 7:48
membervanikanc28-Dec-12 7:48 
GeneralRe: Selected rows in a gridview Pin
rakeshs31228-Dec-12 19:48
memberrakeshs31228-Dec-12 19:48 
AnswerRe: Selected rows in a gridview Pin
Abhinav S29-Dec-12 0:39
mvpAbhinav S29-Dec-12 0:39 
QuestionSliding an Image on another Image Pin
Shubhanshu Pathak27-Dec-12 19:09
memberShubhanshu Pathak27-Dec-12 19:09 
QuestionSerial Port Won't Send While Receiving Pin
C-P-User-327-Dec-12 16:13
memberC-P-User-327-Dec-12 16:13 
AnswerRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan27-Dec-12 22:45
mvpRichard MacCutchan27-Dec-12 22:45 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-328-Dec-12 6:21
memberC-P-User-328-Dec-12 6:21 
GeneralRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan28-Dec-12 6:45
mvpRichard MacCutchan28-Dec-12 6:45 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-328-Dec-12 6:59
memberC-P-User-328-Dec-12 6:59 
GeneralRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan28-Dec-12 7:40
mvpRichard MacCutchan28-Dec-12 7:40 
AnswerRe: Serial Port Won't Send While Receiving Pin
GrooverFromHolland28-Dec-12 8:04
memberGrooverFromHolland28-Dec-12 8:04 
AnswerRe: Serial Port Won't Send While Receiving Pin
jschell28-Dec-12 10:53
memberjschell28-Dec-12 10:53 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-331-Dec-12 11:54
memberC-P-User-331-Dec-12 11:54 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-31-Jan-13 14:35
memberC-P-User-31-Jan-13 14:35 
GeneralRe: Serial Port Won't Send While Receiving Pin
C-P-User-31-Jan-13 14:36
memberC-P-User-31-Jan-13 14:36 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170326.1 | Last Updated 30 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid