Sub Form
-
on pressing button in Form 1, it opens FORM2 and hide itself. But the problem is the FORM2 pops up in different location of the screen..and when i exit that, FORM1 pops up but thats in different location.Whereas i want this to be at the same location. Just looked over properties to set the location but even when i set the same location on both the forms, it results in poping up at different place. What can be the reason for this ? I am sure its one of the easiest thing to do but sometime that gives you heading too... Thanks
-
on pressing button in Form 1, it opens FORM2 and hide itself. But the problem is the FORM2 pops up in different location of the screen..and when i exit that, FORM1 pops up but thats in different location.Whereas i want this to be at the same location. Just looked over properties to set the location but even when i set the same location on both the forms, it results in poping up at different place. What can be the reason for this ? I am sure its one of the easiest thing to do but sometime that gives you heading too... Thanks
Hi, setting Form.Location only works the way you want if you first set
Form.StartPosition=FormStartPosition.Manual;
:)Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.