Displaying folder paths

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 15
Reputation: densman is an unknown quantity at this point 
Solved Threads: 0
densman densman is offline Offline
Newbie Poster

Displaying folder paths

 
0
  #1
Apr 10th, 2009
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 [B]chickens1.jpg[/B instead of all the path??
Thanks
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Displaying folder paths

 
0
  #2
Apr 10th, 2009
String class helps you in that, just play with string coming to you...
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: Displaying folder paths

 
0
  #3
Apr 10th, 2009
Use a FileInfo class:
  1. Imports System.IO
  2. Public Class Form1
  3. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4. Dim file As New FileInfo _("C:\Users\densman\Documents\ImageUploader\Chickens1.jpg")
  5. TextBox1.Text = file.Name
  6. End Sub
  7. End Class
Last edited by waynespangler; Apr 10th, 2009 at 12:31 pm.
Wayne

It is hard to understand how a cemetery can raise its burial rates and blame it on the cost of living.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC