Well I made a proggie that opens a file. But I want it say the filename at the top of the form when I opened it so I did this:

Code:
this.Text = "Map Reader ~ " + ofd.FileName;
However, this gives the whole filename. For example, instead of 'C://Program Files/Grandma/kids.exe' I want kids.exe

I usta know the code but I lost it. If you can, please include the whole code instead of saying something like use an array because I hardly even know what an array is