几个VB的小问题,打底30分!
发布网友
发布时间:2024-10-07 19:54
我来回答
共2个回答
热心网友
时间:2024-11-30 19:03
1、
shell "explorer 路径",1
例:shell "explorer D:\123",1 '打开D:\123路径
2、
可以用paintpicture属性设置图片在图片框内的位置
3、
sub 文本框_change()
窗体1.按钮.caption=文本框.text
end sub
sub 窗体1_unload()
open "文件路径\文件" for output as #1
write #1,文本框.text
close #1
end sub
sub 窗体1_load()
open "文件路径\文件" for input as #1
dim a as string
input #1,a
文本框.text=a
close #1
end sub
热心网友
时间:2024-11-30 19:04
1、
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
ShellExecute hwnd, "open", "文件路径", vbNullString, vbNullString, 5
推荐用这种方法。
2、同ls,PaintPicture
3、
建议用 SaveSetting、GetSetting