请问怎么样打开一张图片,是用Shell命令吗?
请问怎么样用程序打开一张图片,是用Shell命令吗?
[解决办法]
你想怎么打开?放到控件里面还是打开就行了?
[解决办法]
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
Private Sub Command1_Click()
ShellExecute 0&, vbNullString, "C:\1.JPG ", vbNullString, vbNullString, vbNormalFocus
End Sub