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
 
I'm sorry I have read very quickly your message. Forget my solution.
 
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
 

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

Back
Top