Results 1 to 5 of 5

Thread: [RESOLVED] [menu - email option code]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    29

    Resolved [RESOLVED] [menu - email option code]

    hi,
    i have created a "menubar>help>email author"
    which i have provided an option "email author"
    now in order for this option to work.. what control/code will i have to use
    can ny1 guide me
    thnx

  2. #2

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [menu - email option code]

    Try this. Put Email Author in a Label on your About form.
    VB Code:
    1. Option Explicit
    2.  
    3. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
    4. (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
    5. ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    6.  
    7. Private Const SW_SHOWNORMAL = 1
    8.  
    9. Private Sub Label1_Click()
    10. Dim MailMe As String
    11. MailMe = "mailto: [email]YourAddress@YourDomain.Com[/email]"
    12. ShellExecute Me.hWnd, "open", MailMe, vbNullString, vbNullString, SW_SHOWNORMAL
    13. End Sub

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    29

    Re: [menu - email option code]

    Hello hack,
    thnx agian the provided code works like a charmm.. i just blinked my eye for a sec and the answer was there.. i dont know how to thank u.. u obviously are very good at vb.. so i can only honour and thank u by asking another question

    i am pming u my query.. pls help me if u can ..thnx

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [menu - email option code]

    Quote Originally Posted by innos
    Hello hack,
    thnx agian the provided code works like a charmm.. i just blinked my eye for a sec and the answer was there.. i dont know how to thank u.. u obviously are very good at vb.. so i can only honour and thank u by asking another question

    i am pming u my query.. pls help me if u can ..thnx
    I only answer questions that are posted on the open forums.

    If the your query question is related to this question, then post it here.

    If it is not related to this question, then create a new thread and post it there.

    There are three reasons why you shouldn't ask a question in a PM/Email:

    1. You are restricting yourself to only one person in terms of a possible answer. If you keep your questions on the open forum, all sorts of people will view it, and someone else may have something to contribute.

    2. Someone else could be having the same problem, and could benefit by what happens in your question post.

    3. In days and weeks to come, someone may have the same issue, and do a forum search to see if the question has been asked before, and if so, what was the answer. If everything is confined to a PM/Email, they won't find anything.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width