该窗体为子窗体,且已经最大化。
使用如下代码不对
Picture1.Width = Form14.Width
Picture1.Height = Form14.Height
为什么??

解决方案 »

  1.   


    不会吧???那你用这种方法试试aaa=me.widthbbb=me.heightpic1.width=aaapic2.height=bbb
    嘿嘿~~自己都感到可笑~~~
      

  2.   

    Private Sub Form_Load()
    Me.Show
    Picture1.Width = Form14.Width
    Picture1.Height = Form14.Height
    End Sub
      

  3.   

    picture1大小不是form14最大化的大小,为什么??
      

  4.   

    Private Sub Form_Load()
      
      Picture1.move 0,0,scaleWidth,scaleHeightEnd SubPrivate Sub Form_Resize()
      
      Picture1.move 0,0,scaleWidth,scaleHeightEnd Sub
      

  5.   

    按jingsg0(舞为鹤)方法可以,但是我的真正的目的是使picture2(包含在picture1内)居中呀!
    该语句(Picture2.left=(Picture1.ScaleWidth - Picture2.Width) / 2)不对
      

  6.   

    再有Picture1.move 0,0,scaleWidth,scaleHeight语句
    与下面的有什么不同
    Picture1.left=0
    Picture1.top=0
    Picture1.width=scaleWidth
    Picture1.height=scaleHeight
    怎么结果不同呀!!