怎样将MDIform中的背景图片居中显示?
解决方案 »
- *****急100分求教,请问怎么用CreateObject打开浏览器,并且打开指定网页**********
- //大家一定要帮忙啊,这个问题解决不了,今晚我就不睡了。///////
- Listview达人看过来:怎样阻止拖动图标(难吗?不难吗?难吗?不难吗?...)
- vb 随机数分组,每组不重复
- rstTree.AddNew 出错了!!
- 如何用HotKey做到,按一下让form在显示和隐藏之间切换.
- 请教写外挂的高手
- 关于PictureBox和ActiveMovie
- 快告诉我,如何取本机的静态IP地址。
- 怎样使VB编的程序不显示在WINDOWS98的任务列表中?
- VB shape控件
- 求textBox+listBox示例程序。
a是指left,b是top,c是width,d是height
Picture1.Height = Me.Height
Image1.Stretch = True
Image1.Top = Picture1.Height * 0.1
Image1.Left = Picture1.Width * 0.1
Image1.Height = Picture1.Height * 0.8
Image1.Width = Picture1.Width * 0.8
End Sub
Option Explicit
Dim flag As BooleanPrivate Sub MDIForm_Resize()
Picture1.Height = Me.Height
Image1.Stretch = True
Image1.Top = Picture1.Height * 0.1
Image1.Left = Picture1.Width * 0.1
Image1.Height = Picture1.Height * 0.8
Image1.Width = Picture1.Width * 0.8
End SubPrivate Sub open_Click()
If flag Then
Me.Picture1.Visible = True
Form1.Hide
Else
Me.Picture1.Visible = False
Form1.Show
End If
flag = Not flag
End Sub