Dim lub1 As Boolean
Private Sub Command1_Click()
Dim wjm As String
CommonDialog1.Action = 1
wjm = CommonDialog1.FileName
If lub1 Then
Image1.Picture = LoadPicture(wjm)
End If
lub1 = Not lub1
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
lub1 = True
End Sub假如运行时IMAGE1显示的图象是A.BMP,然后点击加载图象B.bmp,在加载新的图象B.bmp后.单击保存,在下次进入运行时就显示的是B.bmp了,,
有劳各位高手帮忙!!!!
Private Sub Command1_Click()
Dim wjm As String
CommonDialog1.Action = 1
wjm = CommonDialog1.FileName
If lub1 Then
Image1.Picture = LoadPicture(wjm)
End If
lub1 = Not lub1
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Form_Load()
lub1 = True
End Sub假如运行时IMAGE1显示的图象是A.BMP,然后点击加载图象B.bmp,在加载新的图象B.bmp后.单击保存,在下次进入运行时就显示的是B.bmp了,,
有劳各位高手帮忙!!!!
解决方案 »
- [求助] FTP下载代码的问题,被卡住了 5555555555
- 老话重谈-关于窗体消息代码的问题
- Shell "hh.exe " & App.Path & "\7ISWE.chm", vbNormalFocus的含义
- 窗体如何能整体复制呀?
- 我要把Combo1的内容写入注册表,为什么不对呢?请帮忙看一下
- 做的浏览器地址栏总是显示iframe里的地址
- 单击Datagrid控件的一条记录,如何在一系列Textbox中显示被选中记录各字段的值
- 如何屏蔽REALONE鼠标右键?
- 散分
- 怎么样设置winsock缓冲区的大小????
- 提问:如何捕捉MSHFLEXGRID控件的某行选中的动作????
- 谁有VB和matlab结合在一起使用的例子啊。介绍几个。
Dim wjm As String
CommonDialog1.Action = 1
wjm = CommonDialog1.FileName
If lub1 Then
Image1.Picture = LoadPicture(wjm)
End If
lub1 = Not lub1
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub CmdSave_Click()
SavePicture Image1.Picture, App.Path & "\temp.bmp"
End Sub
Private Sub Form_Load()
Image1.Picture = LoadPicture(App.Path & "\temp.bmp")
lub1 = True
End Sub
SavePicture Image1.Picture, App.Path & "\p1.bmp"
End Sub
每个窗体都会跟着加载同一个图片了,