I'm Learning how to code in Visual Basic (with VB Express 2005) and i'm trying to code A ZDoom Frontend but i'm stumbling upon problems with getting the filename for the PWAD's that people might want to use in the command line. here's the little bit of code that's the problem:
Code:
********Dim WAD As System.Type
********If OpenFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
************TextBox3 = WAD(OpenFileDialog1.OpenFile())
********End If
it comes up with the error:
"Class 'System.Type' cannot be indexed because it has no default property."
now i'm not sure why this is happening but please keep in mind that i've only just started learning how to code and i'm managing to get my head around the logic behind most of what i have seen so far but i can't figure some things out.