Can I create a Windows Explorer Icon type object in .NET

  • Thread starter Roßert G. Schaffrath
  • Start date
R

Roßert G. Schaffrath

I am trying to create a Windows Explorer icon type object in .NET that
will display an icon image and have a label that works like the label on
an icon in Windows Explorer; maximum two-line display that expands to
full-size when selected and is editable. I would also like to be able
to have it contained on a Form and be able to reposition it by changing
a "Location" property. I have experimented with PictureBox and Panel
box objects without any success. Is there such an object available in
..NET (or natively)? The editable label is especially interesting.

For now I have implemented a static display use the various Graphic
class methods; DrawImage and DrawString but they really do not replace
the advantage of having a true icon type object that I could click and
manipulate.

Robert
 
J

Jeff Gaines

I am trying to create a Windows Explorer icon type object in .NET that
will display an icon image and have a label that works like the label on
an icon in Windows Explorer; maximum two-line display that expands to
full-size when selected and is editable. I would also like to be able to
have it contained on a Form and be able to reposition it by changing a
"Location" property. I have experimented with PictureBox and Panel box
objects without any success. Is there such an object available in .NET
(or natively)? The editable label is especially interesting.

For now I have implemented a static display use the various Graphic class
methods; DrawImage and DrawString but they really do not replace the
advantage of having a true icon type object that I could click and
manipulate.

Robert

You can do it in a List View with a bit of fiddling. Do you just want to
display 1 icon though, rather than a directory of files?
 
R

Roßert G. Schaffrath

Jeff said:
You can do it in a List View with a bit of fiddling. Do you just want to
display 1 icon though, rather than a directory of files?

No, I would display as many files as available. I have a foreign
(non-Windows) file system that I am reading through proprietary API's
and I want to display the contents in a Windows style explorer. I
experimented with ListView items using Large icons view but they
basically line up where they want to be without allowing me to
re-arrange them at will. I would love to be able to extract the
ListView large icon object and use it as a standalone object on a
Windows form.

Robert
 
J

Jeff Gaines

No, I would display as many files as available. I have a foreign
(non-Windows) file system that I am reading through proprietary API's and
I want to display the contents in a Windows style explorer. I
experimented with ListView items using Large icons view but they basically
line up where they want to be without allowing me to re-arrange them at
will. I would love to be able to extract the ListView large icon object
and use it as a standalone object on a Windows form.

Robert

I put something up on the Code Project site which emulates Explorer:
http://www.codeproject.com/KB/files/JFileManager31.aspx

It uses the proper, masked, icons for files on the Windows file system -
whether you can pick anything useful out of it for a 'foreign' file system
I don't know?
 

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