Get File Name from File Path

Reyn

Member
Joined
Dec 11, 2008
Messages
14
Programming Experience
1-3
the current file name is set to display on the title bar and in the status strip, however it also displays the file path. I wan to strip the path, and just show the file name.

VB.NET:
    Public Property FileName() As String
        Get
            Return strFileName
        End Get
        Set(ByVal value As String)
            strFileName = value
            Me.Text = "Simp Edit - " & strFileName
            sts_lbl_FileName.Text = strFileName
        End Set
    End Property
 
Back
Top