"File Explorer"-like listbox (beginner)

G

Guest

I'd really like to create a listbox that is similar to the one in the File Explorer application. It displays an icon in the first column and some text in columns 2 & 3. It should be as wide as the screen unless a vertical scroll bar is visible (then it should be as wide as the screen minus the scroll bar)

I'm not even sure that the File Explorer is using a listview, but that's what it seems like. I don't need the extra controls at the top

This style is used in many applications so I would assume it is possible without having to write my own custom controls, but I can't seem to figure it out. Any help would be great or if you know where I might find the answer, please point me to it.

Thanks.
 
A

Alex Yakhnin [MVP]

Take a look at this article:

http://msdn.microsoft.com/library/d...y/en-us/dnnetcomp/html/SPFiles.asp?frame=true

It's for Smartphones that it will work for PPC's as well.
--
Alex Yakhnin .NET CF MVP
www.intelliprog.com | www.opennetcf.org

Gene Thompson said:
I'd really like to create a listbox that is similar to the one in the File
Explorer application. It displays an icon in the first column and some text
in columns 2 & 3. It should be as wide as the screen unless a vertical
scroll bar is visible (then it should be as wide as the screen minus the
scroll bar).
I'm not even sure that the File Explorer is using a listview, but that's
what it seems like. I don't need the extra controls at the top.
This style is used in many applications so I would assume it is possible
without having to write my own custom controls, but I can't seem to figure
it out. Any help would be great or if you know where I might find the
answer, please point me to it.
 
G

Guest

I think I'm missing the point of your reply. Doh! I'm not actually looking to interact with files, I'd just like to be able to create a listview/listbox like the one used in the File Explorer. I didn't see anything like that in the article

Thanks for the reply tho; it gave me some more things to think about/try.
 
P

Paul G. Tobey [eMVP]

You want a ListView instance and you probably want to set the LargeImageList
or SmallImageList property of this ListView instance to a new ImageList
instance that you set up.

Paul T.

Gene Thompson said:
I think I'm missing the point of your reply. Doh! I'm not actually looking
to interact with files, I'd just like to be able to create a
listview/listbox like the one used in the File Explorer. I didn't see
anything like that in the article.
 
A

Alex Yakhnin [MVP]

I am sorry I've probably mis-understood your question, but you can use a
ListView control to create a similar to File Explorer interface.

--
Alex Yakhnin .NET CF MVP
www.intelliprog.com | www.opennetcf.org

Gene Thompson said:
I think I'm missing the point of your reply. Doh! I'm not actually looking
to interact with files, I'd just like to be able to create a
listview/listbox like the one used in the File Explorer. I didn't see
anything like that in the article.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top