PDA

Click to See Complete Forum and Search --> : [RESOLVED] Go to top of form


gep13
Jun 19th, 2008, 12:09 PM
Hello,

In my application, I open up an instance of a form using form.ShowDialog(). When the form opens up, it is at the bottom of the form, i.e. the controls in the form occupy more space than the screen real estate, so there is a scroll bar on the right hand side of the screen, but the scroll bar is scrolled to the open.

How can I make it so that the form opens up at the top?

Thanks

Gary

gep13
Jun 19th, 2008, 12:17 PM
Ok, never mind.

I set Focus() on a control that is near the top of the form, and it is sorted!

Gary