Results 1 to 2 of 2

Thread: [RESOLVED] Go to top of form

  1. #1

    Thread Starter
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Resolved [RESOLVED] Go to top of form

    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

  2. #2

    Thread Starter
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Go to top of form

    Ok, never mind.

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

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width