I'm creating a notepad. When you save or open a text file its supposed to display the name of the file in the titlebar of the form. However, the way I have it coded, it displays the entire path of the file too. How do I get it to display just the name? Thanks.
VB Code:
Sub Titlebar() Me.Text = CStr(documentName) & " - NotePad" End Sub




Reply With Quote