Windows Develop Bookmark and Share   
 index > Windows Forms General > How to capture the event form window maximized in c#
 

How to capture the event form window maximized in c#

i have design a form with 2 panels

for the first panel i have set form anchor properties.
for the second panel(split panel i have included two buttons NEXT and CANCEL)

we expect the NEXT and CANCEL buttons are apper in botom of the form..but i wont see them at bottom
the are behind the panel 1.how to fix this issue when form ia maximized
  • Moved byTaylorMichaelLMVPThursday, March 05, 2009 2:35 PMMoved (Moved from Visual C# IDE to Windows Forms General)
  •  
Vempati Ravikiran  Thursday, March 05, 2009 6:44 AM
Well, I don't understand very wel what your problem is... But if the buttons are under the first panel, you could add them as the last control in the form, so they will appear over the panel.

You can capture the Form.SizeChanged event, so you can modify the layout of your controls.

Anyway, you should explain you problem better (perhaps including the code of the InitializeComponent method)
OscarPaz  Thursday, March 05, 2009 12:37 PM
You'll probably want to anchor them to the bottom + right.
Hans Passant.
nobugz  Thursday, March 05, 2009 2:39 PM
Well, I don't understand very wel what your problem is... But if the buttons are under the first panel, you could add them as the last control in the form, so they will appear over the panel.

You can capture the Form.SizeChanged event, so you can modify the layout of your controls.

Anyway, you should explain you problem better (perhaps including the code of the InitializeComponent method)
OscarPaz  Thursday, March 05, 2009 12:37 PM
You'll probably want to anchor them to the bottom + right.
Hans Passant.
nobugz  Thursday, March 05, 2009 2:39 PM

You can use google to search for other answers

Custom Search

More Threads

• HTML DOM tree view from Webbrowser.Document.DomDocument
• bring already opened form in focus
• ToolStripMenuItem Shortcut on culture change
• How can I force a try catch statement to raise an exception?
• ContextMenuStrip on MDI Form
• Bug with right aligning text with DrawString method?
• Is there any template for option windows? [Solved]
• Keeping two listboxes synchronized
• regarding password protection
• how to make a MDI form look like a normal form