Open Email client or OUTLOOK from cell text dbl-click

Originally Posted 5 March 2004, 12:19 am EST

  • Originally Posted 5 March 2004, 12:19 am EST


    Hi,

    I have a cell in flexgrid 7.0, which contain email address of employee. Can I open email client (outlook in my case) when user double click the cell text.

    Please send me a sample code.

    Thanks in advance.


  • Reply


    I found this solution:

    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


    Dim sdata as string
    sdata = "mailto:suhant@aol.com"

    ShellExecute Me.hwnd, "open", sData, _
    vbNullString, vbNullString, 1


    Is there any better way of doing..pls. let me know.

    "Sushant" wrote:
    >
    >Hi,
    >
    >I have a cell in flexgrid 7.0, which contain email address of employee. Can I open email client (outlook in my case) when user double click the cell text.
    >
    >Please send me a sample code.
    >
    >Thanks in advance.
    >
    >

  • Reply

    Double-clicking a message to open a new window or tab is a normal operation. If you have the Message Pane turned on a single click will display the message there. Pressing F8 toggles the message pane on and off. Double-clicking a message to open a new window or tab is a normal operation.

    This May Work,
    Peter
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels