propertyGrid display filedialogbox

G

Guest

Hello all,
I am trying to use a propertyGrid control which will display custom made
properties. I have therefore created a class (properties.vb) that i have
assigned to the propertyGrid.selectedObject property and that keeps the
properties that i want to display. What i am trying to accomplish is the
following:
I'd like to have a property (in the propertyGrid) that when clicked it
would open an openfiledialog box (like the one that is used when we select an
image for a control) but i want it to be able to select any type of file.
A second thing is that i want to have a property that would be a collection
so when the ellipsis (...) is clicked an add/remove collection items box is
shown. This is easy to do (declare the public property to be of collection
type). But i'd like ,when pressing the Add button (on the add/remove
collection items box) an openfiledialog box to appear and the item selected
to be added to the collection. It would also be great if i could create the
properties that appear on the right side of the add/remove collection items
box.
Any ideas ?
thx a lot ,theodore
 
A

Atul

To answer your first question : apply the EditorAttribute to your property
and specify the FileNameEditor class as the type

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
 

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