Solved

Link my label direct to outlook or my yahoo/hotmail email account

Posted on 2003-11-21
2
201 Views
Last Modified: 2010-05-01
How do i link my label object to any of my email account (outlook,yahoo,hotmail)?  The scenario: i have a clickable label w/ caption "Email" and a textbox. If the user fill up the textbox with his email add and then click the label, automatically popup the outlook express in new email mode plus the email address inserted to the "To:" option. Thanks
0
Comment
Question by:zack_online
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
rajaamirapu earned 300 total points
ID: 9795504
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
Here is the code
Private Sub Label1_Click()
'URL: http://www.allapi.net/
    'E-Mail: kpdteam@allapi.net
    'Send an E-Mail to the KPD-Team
    ShellExecute Me.hwnd, vbNullString, "mailto:" & Label1.Caption, vbNullString, "C:\", SW_SHOWNORMl
End Sub
0
 
LVL 5

Expert Comment

by:rajaamirapu
ID: 9795512
Sorry SW_SHOWNORMl should be SW_SHOWNORMAL
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question