题目如上
  我做了一个开机自动运行的小程序
   就是当机子打开时,自己自动运行并最大化
  可是当程序最大化时,以前在编程的时候居中。现在程序却只运行在屏幕的左上角
  这是什么原因呀?、

解决方案 »

  1.   

    设置窗体的StartupPosition属性为"2-屏幕中心".
      

  2.   

    private sub form_load()
    move (screen.width-width)/2,(screen.height-height)/2
    end sub
      

  3.   

    最大化时程序只出现在左上角??!!听不懂.不过能用的方法主要就是用douhapy(双喜) 和BitBlt(Raster Operater) 说的了
      

  4.   

    StartupPosition   0 是手动  
    StartupPosition  1 是所有着中心
    StartupPosition  2 屏幕中心  
    StartupPosition  3 是窗口缺省
      

  5.   

    编写窗体的Resize事件,重新定位里面的控件的位置
      

  6.   

    If Me.WindowState <> 1 Then
    move (screen.width-width)/2,(screen.height-height)/2
    end if
      

  7.   

    这样!!!
    Form_Load
    With Screen
      me.Left=(.Width-Me.Width)/2
      Me.Top=(.Height-Me.Height)/2end with
    end sub
      

  8.   

    设置窗体的StartupPosition属性为"2-屏幕中心".