Picturebox 请问如何在Picturebox里加滚动条 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用hscroll 加 vsroll控件CommonDialog1.Filter = "图片类型(*.bmp,*.jpg,*.gif)|*.bmp;*.jpg;*.gif|位图文件(*.bmp)|*.bmp|jpeg文件(*.jpg)|*.jpg|所有格式文件(*.*)|*.*"CommonDialog1.DialogTitle = "打开图片"CommonDialog1.CancelError = TrueCommonDialog1.ShowOpenPicture1.ClsHScroll1.Max = 0VScroll1.Max = 0Picture1.Move 0, 0Picture1.Picture = LoadPicture(CommonDialog1.FileName)HScroll1.Visible = FalseVScroll1.Visible = FalsePicture3.Visible = FalseHScroll1.Max = Picture1.Width - 776VScroll1.Max = Picture1.Height - 576'横竖方向If Picture1.Height > 596 And Picture1.Width > 796 Then HScroll1.Move 0, Picture2.ScaleHeight - HScroll1.Height, Picture2.ScaleWidth - VScroll1.Width, HScroll1.Height VScroll1.Move Picture2.ScaleWidth - VScroll1.Width, 0, VScroll1.Width, Picture2.ScaleHeight - HScroll1.Height Picture3.Move VScroll1.Left, HScroll1.Top HScroll1.Visible = True VScroll1.Visible = True Picture3.Visible = True Exit SubEnd If'竖方向If Picture1.Height > 596 Then VScroll1.Max = VScroll1.Max - 20 VScroll1.Move Picture2.ScaleWidth - VScroll1.Width, 0, VScroll1.Width, Picture2.ScaleHeight VScroll1.Visible = True Exit SubEnd If'横方向If Picture1.Width > 796 Then HScroll1.Max = HScroll1.Max - 20 HScroll1.Move 0, Picture2.ScaleHeight - HScroll1.Height, Picture2.ScaleWidth, HScroll1.Height HScroll1.Visible = True Exit SubEnd If http://zhidao.baidu.com/question/760999.html 1分钟屏幕截图1次 安装vb6写的软件,卸载程序后发生严重的问题 发送数据 送分得问题!! 请高手们指点,如何实现文本文件以数据的方式保存到SQL2000中,请来个实例讲解 请教一个最基础的加载问题啊 求vb注册登录模块的源代码 如何在Picture Box中显示的RS集中的图片,用代码 重奖之下,必有勇乎?——紧急救援!!! vb身高体重出现了问题希望大佬们解决 编译后出错!困扰了! 新手做简单FTP功能(高手多多帮忙
CommonDialog1.DialogTitle = "打开图片"
CommonDialog1.CancelError = True
CommonDialog1.ShowOpen
Picture1.Cls
HScroll1.Max = 0
VScroll1.Max = 0
Picture1.Move 0, 0
Picture1.Picture = LoadPicture(CommonDialog1.FileName)
HScroll1.Visible = False
VScroll1.Visible = False
Picture3.Visible = FalseHScroll1.Max = Picture1.Width - 776
VScroll1.Max = Picture1.Height - 576
'横竖方向
If Picture1.Height > 596 And Picture1.Width > 796 Then
HScroll1.Move 0, Picture2.ScaleHeight - HScroll1.Height, Picture2.ScaleWidth - VScroll1.Width, HScroll1.Height
VScroll1.Move Picture2.ScaleWidth - VScroll1.Width, 0, VScroll1.Width, Picture2.ScaleHeight - HScroll1.Height
Picture3.Move VScroll1.Left, HScroll1.Top
HScroll1.Visible = True
VScroll1.Visible = True
Picture3.Visible = True
Exit Sub
End If
'竖方向
If Picture1.Height > 596 Then
VScroll1.Max = VScroll1.Max - 20
VScroll1.Move Picture2.ScaleWidth - VScroll1.Width, 0, VScroll1.Width, Picture2.ScaleHeight
VScroll1.Visible = True
Exit Sub
End If
'横方向
If Picture1.Width > 796 Then
HScroll1.Max = HScroll1.Max - 20
HScroll1.Move 0, Picture2.ScaleHeight - HScroll1.Height, Picture2.ScaleWidth, HScroll1.Height
HScroll1.Visible = True
Exit Sub
End If