Results 1 to 4 of 4

Thread: Time Conversion

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Liskeard, cornwall
    Posts
    21

    Post

    Please could someone tell me how I can use the mailto command from VB to automatically open or restore the default mailbox and open a new message box.

    I have tried using a shell command but this doesnt seem to work.

    any ideas.

    Cheers

    M.

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    stick this in a module...
    Code:
    Public Const email = "Whoever@wherever..."
    
    Public 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
    Public Const SW_SHOWNORMAL = 1
    
    
    Public Sub sendemail()
    Dim Success As Long
    
    Success = ShellExecute(0&, vbNullString, "mailto:" & email, vbNullString, "C:\", SW_SHOWNORMAL)
    
    End Sub



    ------------------
    Mark Sreeves
    Analyst Programmer

    Mark.Sreeves@Softlab.co.uk
    A BMW Group Company

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Liskeard, cornwall
    Posts
    21

    Post

    Cheers Mark ... great stuff.

    works excellently

    M.

  4. #4
    Member
    Join Date
    Sep 1999
    Location
    UK
    Posts
    45

    Post

    Anyone know where I can get somekind of code to convert time in milliseconds to hh:mm:ss.mil????

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