Results 1 to 2 of 2

Thread: OpenFileDialog1 errors

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Raleigh, NC
    Posts
    3

    OpenFileDialog1 errors

    Ok, I'm just trying to use a simple OpenFileDialog1 in my code.... but its giving me a "Name OpenFileDialog1 is not declared'...?

    Why?

    I shouldn't have to declare anything... its a Dialog!

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Location
    Raleigh, NC
    Posts
    3
    Code:
    Dim sr As IO.StreamReader
    Dim kid() As String
    Dim split, textFile As String
    OpenFileDialog1.ShowDialog()
    textFile = OpenFileDialog1.FileName
    sr = IO.File.OpenText(textFile)
    Heres a snippet if it helps

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