OpenFileDialog !!

Results 1 to 3 of 3

Thread: OpenFileDialog !!

  1. #1
    Join Date
    Dec 1969

    Default OpenFileDialog !!

    I try to display the name of the file i have selected in a directory. I use the propertie of FileName but i get the sting of all the path of that file... Just want de Name of that file not the path that comes with it.<BR><BR>any how to do it ??<BR><BR>The file i try to opend is a *.mdb from MS Access so it can be diffirent names but with the same structure in to it.<BR><BR>thanx

  2. #2

    Default RE: OpenFileDialog

    Can you explain a bit more...

  3. #3
    Join Date
    Dec 1969

    Default RE: OpenFileDialog !!

    yeah first use the LastIndexOf method on the pathstring you get. say strParthString is your path string then <BR><BR>nLastIndex = strParthString.LastIndexOf("//") // in C#<BR>strFileName = strParthString.SubString(nLastIndex +1)<BR><BR>strFileName contains your file name<BR><BR>Warm Regards<BR>Ritesh<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts