View Single Post
Old 23-04-2007, 01:26 PM   #5
JJXB
Pi-voh
 
JJXB's Avatar

 
Join Date: Oct 2004
Location: Godmanchester, England
Posts: 850
Default

i've looked at the code and tried adapting it so it now looks like this (the full block of code now, not just the problem bit)
Code:
********Dim OpenFileDialog1 As New OpenFileDialog()
********OpenFileDialog1.Filter = "Wad Files|*.WAD"
********OpenFileDialog1.Title = "Select The WAD You Wish To Add"
********
********Dim TextBox3 As TextBox
********If OpenFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
************TextBox3.Text = Path.GetFileName(OpenFileDialog1.FileName)
********End If
and it's coming up with:
Quote:
Name 'Path' is not declared[/b]
and i'm not sure how to proceed since i'm not sure what to declare "Path" as
__________________
~Ceramic White PSP Status~
FW: 5.00 M33-6
Memory Stick: 8gb
JJXB is offline                         Send a private message to JJXB
Reply With Quote