Click here to Skip to main content
15,894,180 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionForm Resizing and Docked Controls Pin
farzadmf8-Sep-09 12:48
farzadmf8-Sep-09 12:48 
AnswerRe: Form Resizing and Docked Controls Pin
Henry Minute8-Sep-09 13:04
Henry Minute8-Sep-09 13:04 
GeneralRe: Form Resizing and Docked Controls Pin
farzadmf8-Sep-09 20:05
farzadmf8-Sep-09 20:05 
GeneralRe: Form Resizing and Docked Controls Pin
Henry Minute9-Sep-09 7:35
Henry Minute9-Sep-09 7:35 
AnswerRe: Form Resizing and Docked Controls Pin
farzadmf9-Sep-09 10:05
farzadmf9-Sep-09 10:05 
GeneralRe: Form Resizing and Docked Controls Pin
Henry Minute9-Sep-09 10:56
Henry Minute9-Sep-09 10:56 
GeneralRe: Form Resizing and Docked Controls Pin
farzadmf9-Sep-09 11:45
farzadmf9-Sep-09 11:45 
GeneralRe: Form Resizing and Docked Controls [Hold the Front Page] Pin
Henry Minute9-Sep-09 11:10
Henry Minute9-Sep-09 11:10 
I'm not sure that you are correct.

Simple Form, PictureBox.

public Form1()
{
    InitializeComponent();

    this.Form1_ResizeEnd(null, EventArgs.Empty); // just to get the correct caption
}

private void Form1_ResizeEnd(object sender, EventArgs e)
{
    this.Text = string.Format("Form1 [{0}, {1}] - {2}", this.pictureBox1.Width, this.pictureBox1.Height, this.pictureBox1.Dock);
}


Connect the ResizeEnd event of the Form to the handler above.

All now appears to be hunky-dory.

What do you think?

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.”

AnswerRe: Form Resizing and Docked Controls Pin
Zoki Manas8-Sep-09 23:06
Zoki Manas8-Sep-09 23:06 
AnswerRe: Form Resizing and Docked Controls Pin
farzadmf8-Sep-09 23:55
farzadmf8-Sep-09 23:55 
AnswerRe: Form Resizing and Docked Controls Pin
geali_dor9-Sep-09 19:46
geali_dor9-Sep-09 19:46 
GeneralRe: Form Resizing and Docked Controls Pin
farzadmf9-Sep-09 23:02
farzadmf9-Sep-09 23:02 
QuestionShow Notification Pin
sri_00998-Sep-09 1:12
sri_00998-Sep-09 1:12 
AnswerRe: Show Notification Pin
Richard MacCutchan8-Sep-09 5:31
mveRichard MacCutchan8-Sep-09 5:31 
GeneralRe: Show Notification Pin
sri_00998-Sep-09 22:20
sri_00998-Sep-09 22:20 
GeneralRe: Show Notification Pin
Richard MacCutchan8-Sep-09 23:49
mveRichard MacCutchan8-Sep-09 23:49 
GeneralRe: Show Notification Pin
sri_00999-Sep-09 0:48
sri_00999-Sep-09 0:48 
GeneralRe: Show Notification Pin
Richard MacCutchan9-Sep-09 3:19
mveRichard MacCutchan9-Sep-09 3:19 
QuestionEmergeny Message Pin
sri_00993-Sep-09 21:14
sri_00993-Sep-09 21:14 
AnswerRe: Emergeny Message Pin
Richard MacCutchan4-Sep-09 0:35
mveRichard MacCutchan4-Sep-09 0:35 
GeneralRe: Emergeny Message Pin
sri_00994-Sep-09 0:39
sri_00994-Sep-09 0:39 
GeneralRe: Emergeny Message Pin
Richard MacCutchan4-Sep-09 0:46
mveRichard MacCutchan4-Sep-09 0:46 
QuestionBest Commercial DataGrid that has Filtering? Pin
MisterT993-Sep-09 8:41
MisterT993-Sep-09 8:41 
QuestionSkinning a WinForm Pin
Azghar Hussain3-Sep-09 0:57
professionalAzghar Hussain3-Sep-09 0:57 
AnswerRe: Skinning a WinForm Pin
Henry Minute3-Sep-09 10:04
Henry Minute3-Sep-09 10:04 

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.