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!
Printable View
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!
Heres a snippet if it helpsCode:Dim sr As IO.StreamReader
Dim kid() As String
Dim split, textFile As String
OpenFileDialog1.ShowDialog()
textFile = OpenFileDialog1.FileName
sr = IO.File.OpenText(textFile)