求教关于Image1控件与File1控件组合
求教关于Image1控件与File1控件组合的代码,想得到以下代码的功能!我只知道Image1.Picture = LoadPicture("D:/123.jpg")这样的方式读取本地图片!谢谢大家!程序代码:
Private Sub File1_Click() Open File1.Path & "\" & File1.FileName For Binary As #1 Text1.Text = Input(LOF(1), 1) Close #1 End Sub Private Sub Form_Load() File1.Path = App.Path & "\wz" '设置路径" File1.Pattern = "*.txt" End Sub
还提一个问题就是File1读取文件后 怎么去除后缀名!
[此贴子已经被作者于2017-12-26 09:37编辑过]