propertyGrid display filedialogbox

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top