我要寫一個電話簿program,有一個textbox用在紀錄email address。
我可否在textbox旁加一個Comand Buttom,按後會開動預設的email application(如Outlook或Netscape Mail等....)并將該Textbox的文字set做email program的收件者address?
如果可以,要怎樣做?
我可否在textbox旁加一個Comand Buttom,按後會開動預設的email application(如Outlook或Netscape Mail等....)并將該Textbox的文字set做email program的收件者address?
如果可以,要怎樣做?
文章標籤
全站熱搜

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 Me.hWnd, "open", "mailto:jwh@ms1.hinet.net", "", "", 5 End Sub 您只要將上面的 "mailto:jwh@ms1.hinet.net" 改成 "mailto:" & text1.text 就可以了. <<VB入門網>> http://www.ruentex.com.tw/vbguide