|
Down Rodeo said: Rockbomb is in fact correct. If you're using Visual Studio there should be some sort of code completion.
Yes, I turned that off don't like it at all.
Edit :: New Question
So I have an ellipsis button that, when I click it, I wan't it to open a new gui specifically windows explorer so that they can search for their file.
Well lucky for you, Sprinkles, I happen to be a novice in Visual Basic, you would do something like this
Visual Basic code Dim myStream As Stream = Nothing
Dim openFileDialog1 As New OpenFileDialog()
openFileDialog1.InitialDirectory = "c:\"
openFileDialog1.Filter = "Map files (*.map)|*.map|All files (*.*)|*.*"
openFileDialog1.FilterIndex = 2
openFileDialog1.RestoreDirectory = True
If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
Try
myStream = openFileDialog1.OpenFile()
If (myStream IsNot Nothing) Then
' Insert code to read the stream here.
End If
Catch Ex As Exception
MessageBox.Show("Cannot read file from disk. Original error: " & Ex.Message)
Finally
' Check this again, since we need to make sure we didn't throw an exception on open.
If (myStream IsNot Nothing) Then
myStream.Close()
End If
End Try
End If
I don't know what it does but Microsoft said it will work.
|
|
|
|
≡
|
2009 Dec 11 at 19:12 UTC
— Ed. 2009 Dec 11 at 20:27 UTC
|
|