|
I'm using property grids to replace some intricate windows forms in a business application - so far so good, the code is much simpler and the user community seem to like what they see.
What I now need to do is to implement PropertyTabs for the detailed and optional data "tables" (it's not a database app as such, the information resides in various imbedded systems - hence the rabbit's ears). What I'd like to do is to write a class for each detailed/optional "table", that the user would drive via a drop down button in the PropertyGrid's ToolStrip, similar to the Events button.
So I wrote a couple of classes based on PropertyTab, added them via PropertyGrid.PropertyTabs.AddTabType but "nothing happens" - the GetProperties method is never called. The only example I can find is the one in the library which states that property tabs are defined via a PropertyTab attribute,. However its not clear to me, to what object I should apply the PropertyTab attribute.
Also what is the Command Pane, there's a bunch of colors that one can specify, but how does one create an actual command? Is the command Pane used in the VS IDE, if so whereabouts is that, if I could see an example then I can probably wrap my head around whatever is the Command Pane does.
Most of the information I can find about property grids assumes that they are only used at design time, if anyone knows of any articles that don't make this assumption I appreciate a pointer in the direction thereof. Indeed the whole area of components needs a decent book - any recommendations ?
Thanks PhilD
|