http://www.csdn.net/expert/topic/559/559353.xml?temp=.068371
解决方案 »
- Form_KeyDown事件响应F1键问题
- 怎样在webbrowser中打开网页
- 急急急急急急急急急急急急急急急DBgrid问题在线等啊 (我就剩这么点分了)
- 在picture 控件里面加载一个图形, 然后用画框来在picture控件选取部分像素点, 点按钮后,想实现在picture1里面只显示我选择的内容, 请
- 求人帮助,小弟想写个人人+sina微博状态同时更新器!
- VB里真的连这个问题都没有解决方法吗?希望各位高手来帮忙呀
- 打印问题急救???
- 编程爱好者、程序员和分析员的区别?
- 继续以前的问题
- 怎样用ADO连接到VF6.0 的数据库
- 如何用WINSOCK的UDP协议实现局域网的广播式发送?
- 哪位大哥帮个忙。我是个新手!
用两个picturebox!
iyy = VScroll1.ValueEnd Sub
Private Sub HScroll1_Change() Image1.left = Image1.left + ixx - HScroll1.Value
ixx = HScroll1.Value
End Sub
Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.Visible = 0
If Button = 1 Then
Image1.Width = Image1.Width * 1.25
Image1.Height = Image1.Height * 1.25
Image1.left = Frame1.left + Frame1.Width / 2 - 1.25 * X
Image1.top = Frame1.top + Frame1.Height / 2 - 1.25 * YElse
Image1.Width = Image1.Width * 0.8
Image1.Height = Image1.Height * 0.8
Image1.left = Frame1.left + Frame1.Width / 2 - 0.8 * X
Image1.top = Frame1.top + Frame1.Height / 2 - 0.8 * YEnd If
'Image1.Left = X - Image1.Width / 2 + Frame1.Left
'Image1.Top = Y - Image1.Height / 2 + Frame1.Top
Image1.Visible = 1
End Sub
form_load()
ixx = 0: iyy = 0
'----------------图像调整
Image1.Visible = 0
Dim xx As Single
xx = Image1.Width / Image1.Height
If xx > 4 / 3 Then
Image1.Width = Frame1.Width
Image1.Height = Image1.Width / xx
Else
Image1.Height = Frame1.Height
Image1.Width = Image1.Height * xx
Image1.left = Frame1.Width / 2 - Image1.Width / 2
Image1.top = Frame1.Height / 2 - Image1.Height / 2Image1.Stretch = 1
Image1.Visible = 1end sub
用2个picturebox,一个作框,一个用来显示