Me.WindowState = vbMaximized

解决方案 »

  1.   

    Private Sub Form_Load()
        Height = Screen.Height
        Width = Screen.Width
        Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
    End Sub
      

  2.   

    改Form的WindowState属性
    把BorderStyle属性改成0-None
      

  3.   

    VERSION 5.00
    Begin VB.Form Form1 
       Caption         =   "Form1"
       ClientHeight    =   3195
       ClientLeft      =   60
       ClientTop       =   345
       ClientWidth     =   4680
       LinkTopic       =   "Form1"
       ScaleHeight     =   3195
       ScaleWidth      =   4680
       StartUpPosition =   3  'Windows Default
    End
    Attribute VB_Name = "Form1"
    Attribute VB_GlobalNameSpace = False
    Attribute VB_Creatable = False
    Attribute VB_PredeclaredId = True
    Attribute VB_Exposed = False
    Private Sub Form_Load()
        Height = Screen.Height
        Width = Screen.Width
        Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
    End Sub
      

  4.   

    首先将窗体设为最上层窗体,
    然后,
    form1.move 0,0,screen.width,screen.height