Hiding File Extension in File List Box


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Hiding File Extension in File List Box

  1. #1
    Paul H Guest

    Hiding File Extension in File List Box

    I cant find a way to hide the file extension in a file list box. Is it
    possible?
    The file type is hard coded, so the extension is just clutter.

    Thanks for the answers to my previous question.

    Paul H



  2. #2
    dnagel Guest

    Re: Hiding File Extension in File List Box

    The file list box is just a list box...

    You could leave it on the form and then
    make it invisible.

    Place a listbox or a combobox or whatever
    your heart desires to replace it...

    Populate the new control by walking the listitems
    of the file list box and use split(flb.list(x),".")(0)
    to populate just the name into the new control.

    You could use the index chosen in the new control
    to identify the proper selected item in the file list box
    and then get the name and path property from that.
    ....

    Hope thats enough to go by...

    D.

    "Paul H" <paulh@rimex.com> wrote in message news:3baa4bb0$1@news.devx.com...
    > I cant find a way to hide the file extension in a file list box. Is it
    > possible?
    > The file type is hard coded, so the extension is just clutter.
    >
    > Thanks for the answers to my previous question.
    >
    > Paul H
    >
    >




  3. #3
    Paul H Guest

    Re: Hiding File Extension in File List Box

    Thanks for the reply, I had already used that solution, I was just looking
    for a simpler way.



    "dnagel" <GrandNagel@hotmail.com> wrote in message
    news:3bb0fb6f$1@news.devx.com...
    > The file list box is just a list box...
    >
    > You could leave it on the form and then
    > make it invisible.
    >
    > Place a listbox or a combobox or whatever
    > your heart desires to replace it...
    >
    > Populate the new control by walking the listitems
    > of the file list box and use split(flb.list(x),".")(0)
    > to populate just the name into the new control.
    >
    > You could use the index chosen in the new control
    > to identify the proper selected item in the file list box
    > and then get the name and path property from that.
    > ...
    >
    > Hope thats enough to go by...
    >
    > D.
    >
    > "Paul H" <paulh@rimex.com> wrote in message

    news:3baa4bb0$1@news.devx.com...
    > > I cant find a way to hide the file extension in a file list box. Is it
    > > possible?
    > > The file type is hard coded, so the extension is just clutter.
    > >
    > > Thanks for the answers to my previous question.
    > >
    > > Paul H
    > >
    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center