C# and Designer

  • Thread starter Thread starter Jon Slaughter
  • Start date Start date
J

Jon Slaughter

This might not be the best group for this question but I don't know where
else to post.

I've designed a control and I'm trying to setup a designer for it.

My issue right now is that I'm need "dynamic" properties so that when one
property is modified it will change another property.

Really all I'm doing is hiding some properties and showing others depending
on a value. If true it will hide set X and show set Y else it will show X
and hide Y. The reason for this is just to reduce the number of properties
when many are not necessary.

I am trying to do this in Pre/PostFilterProperties but these do not get
called when a property is changed.

Is there any way I can do what I want? (In some way I need to update the
properties list when a property is changed and not just before or after the
control is created)

Thanks,
Jon
 
This might not be the best group for this question but I don't know where
else to post.

I've designed a control and I'm trying to setup a designer for it.

My issue right now is that I'm need "dynamic" properties so that when one
property is modified it will change another property.

Really all I'm doing is hiding some properties and showing others depending
on a value. If true it will hide set X and show set Y else it will show X
and hide Y. The reason for this is just to reduce the number of properties
when many are not necessary.

I am trying to do this in Pre/PostFilterProperties but these do not get
called when a property is changed.

Is there any way I can do what I want? (In some way I need to update the
properties list when a property is changed and not just before or after the
control is created)

I don't know of a way to do this. And to be honest, it would bug me if
a property I'm looking for was missing from the list simply because some
other property was set to a certain value.

And even if you got it working in the property browser, I doubt
intellisense would support what you want.
 

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