"kuwaha" <kuwaha@anonymous.dk> skrev i en meddelelse
news:3f045045$0$76058$edfadb0f@dread11.news.tele.dk...
> Hvis man har en email-adresse i et felt, hvordan åbner man så
> emailprogrammet for en ny mail til adressen?
> Med et klik, forstås.
Placér dette i general declarations:
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
og dette i f.eks. command1_click():
ShellExecute 0, "Open", "mailto:" & Text1.Text, "", "", vbNormalFocus
.... forudsat dit tekstfelt hedder text1...
Held og lykke
--
Lasse