how can i send an e-mail through Outlook using VS 2005

hi,
How can i send an email using outlook 2003? i do know there is a way to send an email but it does not put up the box where the user inputs the destination.
the procedure i have currently works but this time i need to display the box.


  Public Sub Attachment()

        ' Create an Outlook application.
      Dim oApp As Microsoft.Office.Interop.Outlook._Application
        oApp = New Microsoft.Office.Interop.Outlook.Application()

       ' Create a new MailItem.
     Dim oMsg As Microsoft.Office.Interop.Outlook._MailItem
      oMsg = oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem)
      oMsg.Subject = "Send Attachment Using OOM in Visual Basic .NET"
      oMsg.Body = "Hello World" & vbCr & vbCr

    'oMsg.SenderEmailAddress()
    '    ' TODO: Replace with a valid e-mail address.
'display box to have the user enter the desire destination    
'  oMsg.To = "name@somewhere.com>"

       ' Add an attachment
       ' TODO: Replace with a valid attachment path.
       Dim sSource As String = "C:\billguy.bmp"
       ' TODO: Replace with attachment name
       Dim sDisplayName As String = "Hello.txt"

       Dim sBodyLen As String = oMsg.Body.Length
        Dim oAttachs As Microsoft.Office.Interop.Outlook.Attachments = oMsg.Attachments
       Dim oAttach As Microsoft.Office.Interop.Outlook.Attachment
        oAttach = oAttachs.Add(sSource, , sBodyLen + 1, sDisplayName)

        ' Send
        oMsg.Send()

      ' Clean up
     oApp = Nothing
      oMsg = Nothing
       oAttach = Nothing
       oAttachs = Nothing
    End Sub

my question here is how can i display the Outlook email box to enter the desire destination.
LVL 1
jsctechyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
The MailItemClass has the Display method that you can use to display the email that you want to send:

oMsg.Display(New Object())

Bob
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.