OK, I'm still slightly confused as to what you want to achive, and
what *exactly* you are calling run- and design- time. If you want some
common properties to be provided automatically, then a base-class
seems in order. There are more complex solutions like
TypeDescriptionProvider, but I'm /really/ not clear what you are
trying to do. Sorry.
I know it might be frustrating, but if you try and re-phase it I'll
have another go?
If it is just a case of declaring properties, then yup; not very
interesting... but prop[tab][tab] can help, as can using the visual
class designer.
Marc
thanks for being so patient
here is another go:
we have a client, it allows the user to create displays. these
displays consist of .net user controls.
the .net user controls communicate with data providers (i.e. data
sources) showing real-time values.
ok so in order to implement the communication in all controls we have
a base class containing virtual methods for the communication.
the client has a design and run mode. in design mode the user can
create the displays by drag and drop from a toolbox similar to visual
studio's tool box. he can also configure the control
in run mode, the displays just show values
in both modes there are properties on the controls, in design mode the
focus is on configuration. in run mode, the focus is on showing
various values i.e. a numeric control shows a temperature,
right-clicking on the control gives an option to show last 10 values
or a trend for them (the controls also show values in design mode).
....
with regard to properties now: until now we have just put those
keywords (Browsable) on each and every property to hide/show the
properties depending on our run/design mode. the question was if there
is another better way to this? the reason i ask is because later when
more and more controls are done everyone of them should have similar
properties in design mode so that handling controls are done in a
similar fashion. however, with the current scheme it is difficult to
enforce, depending on who is doing the control he may decide to show
one property that other controls don't even though he shouldn't
hrmph hopefully this was clearer, although i am not sure
tia
ajk