以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]如何获取已经载入了的图片地址 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=105786) |
-- 作者:WENFEIZHU -- 发布时间:2017/8/25 21:10:00 -- [求助]如何获取已经载入了的图片地址 我通过对话框载入了一个图片 Dim fm As WinForm.Form = Forms("submit-11") Dim dlg As new OpenFileDialog dlg.ShowDialog dlg.MultiSelect = False dlg.Filter = "图片文件|*.bmp;*.jpg;*.gif;*.ico;*.png" Dim adrs As String = dlg.FileName Dim pic As WinForm.PictureBox = fm.controls("PictureBox1") pic.ImageFile = adrs 我希望在窗口的另外一个按钮的click事件中获取这个图片的地址,如何获得?
|
-- 作者:有点蓝 -- 发布时间:2017/8/25 21:18:00 -- Dim pic As WinForm.PictureBox = Forms("submit-11").Controls("PictureBox1") msgbox(pic.ImageFile)
|