Property Pages

  • Thread starter Thread starter Nice Chap
  • Start date Start date
N

Nice Chap

Is it possible to have custom property pages for a Component and if so how I
can write one please ?

Also, is it possible to reuse the drop down box that we get for Data Source
and Data Member inside VS.net's property grid, for my component ? If so any
pointers would be immensely appreciated.

Thank you.
 
You can implement a page Class's child where you write your properties. All
page that must inherits from this new class.

Public Class MyPage
Inherits System.Web.UI.Page

End Class
 
Nice Chap,
Is it possible to have custom property pages for a Component and if so how I
can write one please ?
What do you mean by "property page"? Do you mean the values listed in the
Property Window?

This control is actually the System.Windows.Forms.PropertyGrid, which you
can freely use in your own app. By using various interfaces & attributes in
the System.ComponentModel namespace you can control what & how properties
are displayed in the Grid.

For details on the property grid see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/usingpropgrid.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/vsnetpropbrow.asp
Also, is it possible to reuse the drop down box that we get for Data Source
and Data Member inside VS.net's property grid, for my component ? If so any
pointers would be immensely appreciated.
Yes it is possible, I don't remember if the above two links cover it, or I
read it someplace else... Post if its not covered in the above two articles.

Hope this helps
Jay
 
Back
Top