i have a file path shown below i intend to display file only;
C:\Users\densman\Documents\ImageUploader\Chickens1.jpg
is there a way to display chickens1.jpg[/B instead of all the path??
Thanks

String class helps you in that, just play with string coming to you...

Use a FileInfo class:

Imports System.IO
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim file As New FileInfo _("C:\Users\densman\Documents\ImageUploader\Chickens1.jpg")
        TextBox1.Text = file.Name
    End Sub
End Class
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.