Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I would like to add a property for an inherited control in order to be displayed in the property window during design-time.

In my example it is a simple boolean property.

I know that I have to use a Designer and that I need the PreFilterProperties method.

But thats it. So, can anyone help me please, to solve that problem.

  • *Experts*
Posted

Actually, I've added properties to inherited controls and they show up automatically in the properties window (A bool property has the usual True/False choices). Just make sure your property is public.

 

-ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Posted

Hey thx, that's right!!!

I did not check this, because I was after the solution for the Control Designer.

So what is the PreFilterProperties method for, when added properties are added to the Properties Window anyway?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...