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:
  1. Sub Titlebar()
  2. Me.Text = CStr(documentName) & " - NotePad"
  3. End Sub