If KeyCode = 13 ThenFor i = 0 To ListFile.ListCount - 1
If ListFile.Selected(i) Then
'MsgBox sFile(i), vbOKOnly, "Msg"
lr = ShellExecute(Me.hwnd, "open", "e:\1.txt", "", "", SW_SHOW)
' Shell "notepad e:\1.txt" //用这句就可以
If lr < 0 Or lr > 32 Then
MsgBox "success"
End If
End If
NextEnd If
If ListFile.Selected(i) Then
'MsgBox sFile(i), vbOKOnly, "Msg"
lr = ShellExecute(Me.hwnd, "open", "e:\1.txt", "", "", SW_SHOW)
' Shell "notepad e:\1.txt" //用这句就可以
If lr < 0 Or lr > 32 Then
MsgBox "success"
End If
End If
NextEnd If
2楼的哥们,搞不定,用了NULL,程序调试都通不过,为非法使用NULL
我用Shell sFile(i), vbMaximizedFocus
也仅仅只是最大化