Results 1 to 6 of 6

Thread: Make form center on screen? [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253

    Make form center on screen? [RESOLVED]

    And i dont mean when it starts up.

    VB Code:
    1. Private Sub mnuViewFileEditorMode_Click()
    2. 'Size window according to users preference
    3.     If mnuViewFileEditorMode.Checked = True Then
    4.         mnuViewFileEditorMode.Checked = False
    5.         Me.Width = 5730
    6.     ElseIf mnuViewFileEditorMode.Checked = False Then
    7.         mnuViewFileEditorMode.Checked = True
    8.         Me.Width = 11520
    9.     End If
    10. End Sub

    This sizes my form when the menu is clicked, the problem is, sometimes my form is left right at the far left off the screen.

    Is there any way to make it go to the center?

    Thanks
    Last edited by Madboy; Mar 11th, 2004 at 09:52 AM.

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