closet geek
Member
- Joined
- Apr 2, 2006
- Messages
- 21
Hi,
I have a tabbed application, when a user opens a file to be displayed in a tab I naturally want the filename to appear in the tab.
Using this:
Puts the whole path in the tab, making the tab very long e.g.
C:/path/to/file.txt
I just want:
file.txt
To be in the tab. How do I go about doing that?
Thanks.
I have a tabbed application, when a user opens a file to be displayed in a tab I naturally want the filename to appear in the tab.
Using this:
Code:
openFileDialog1.get_FileName()
Puts the whole path in the tab, making the tab very long e.g.
C:/path/to/file.txt
I just want:
file.txt
To be in the tab. How do I go about doing that?
Thanks.