Results 1 to 2 of 2

Thread: VB2008 - Requesting Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    1

    VB2008 - Requesting Help

    Hello

    So I'm having trouble with my program I would say it's pretty Basic but I'm not very fond in Visual Basic.

    What I'm trying to achieve:

    User Hits "Browse" Looks for the "Time.db" file then hit's "Approve" what supposed to happen is that time.db file sends to my email as an attachment


    My Problem:

    When I hit Approve this will come up
    Code:
    Could not find a part of the path 'C:\done\time.db'.
    The Code I'm using

    Code:
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Dim MyMailMessage As New MailMessage()
            Dim MsgAttachment As New Attachment(TextBox1.Text & "\config\data.db")
            MyMailMessage.From = New MailAddress("~~~~@~~.com")
            MyMailMessage.To.Add("~~@~~.com")
    All help is appreciated, Getting really pissed.

  2. #2
    Frenzied Member toecutter's Avatar
    Join Date
    Apr 2006
    Location
    Brisbane, Australia
    Posts
    1,160

    Re: VB2008 - Requesting Help

    What happens if you type C:\done\

    into start/run?

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