Это будет работать только в Win2000+mr.first писал(а):hCORe прав
Dim sdg As Object
Set sdg = CreateObject("Shell.Application")
sdg.ShellExecute NameFile, "", , , 10
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
Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
'Send an E-Mail to the KPD-Team
ShellExecute Me.hwnd, vbNullString, "mailto:KPDTeam@Allapi.net", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
Сейчас этот форум просматривают: Majestic-12 [Bot] и гости: 147