Results 1 to 4 of 4

Thread: Modal dialog location

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Sunderland, UK
    Posts
    53

    Resolved Modal dialog location

    Is it possible to specify the position for a modal dialog ?
    Last edited by Paolo_ituk; Feb 28th, 2006 at 07:36 AM.

  2. #2
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Modal dialog location

    Of course. Set the position before you call .ShowDialog... ?

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Modal dialog location

    If StartUpPosition property of that Form is Manual you can do..
    VB Code:
    1. Fr.Left = 0 'Whatever you want
    2.      Fr.Top = 0  'Whatever you want
    3.      Fr.ShowDialog(Me)

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Sunderland, UK
    Posts
    53

    Re: Modal dialog location

    Of course. I forgot to set the StartPosition property to FormStartPosition.Manual so the value assigned to location was being ignored. Thank you.

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