Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
hi all,



In my windows application while page is loding first time it look ok but if we minimize and again maximize the page, all controls move little bit down.

how can i resolve this issue.
Posted
Comments
johannesnestler 16-Aug-11 11:51am    
learn to ask good questions, then, maybe you will get good answers.
Tim Groven 16-Aug-11 16:09pm    
Can you post the code you have in the Form_Activate method, and if you have it, the OnResize method?
BillWoodruff 16-Aug-11 17:03pm    
@johannesnestler What's wrong with this question ? Seems clear enough to me to offer some advice. If you don't wish to be helpful to people asking questions here, why are you here ?
BillWoodruff 16-Aug-11 17:06pm    
@suniltikl Caydence asked you a good question to help clarify what's happening; I hope these questions will help also:

1. are there any controls on your form that are not moving: if so, what are they ?

2. for any control that is moving: what event handlers for that control have you defined ?

3. have you set either anchor or dock properties for the controls on your form ?

1 solution

hi all,

i found the solution, actually my form's all controls were moving little bit down when i was minimizing and again maximizing the solution is that i added extra code on parent form menu click for that particular page the code is: -

Form1 objForm1 = new Form1();
objForm1.MDIParent = this;
<b>objForm1.Dock = DockStyle.Fill;</b>
objForm1.Show();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900