Designer Font Property

T

twostepted

I've had some success using the designer to configure my control.
However, I'm having some trouble getting the designer to write code for
the control's Font property. Here's the Property definition:

// Font
private Font _font;
[Browsable(true),
ReadOnly(false),
Category("MyCtl"),
Description("MyCtl Font Properties ")]
public new Font Font
{
get { return _font; }
set
{
_font = value;
}
}

Anyone know how I can get the designer to save the font? I'd prefer to
use the declarative Attributes rather than write a custom UITypeEditor.


Thanks,

--Travis
 

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

Members online

Forum statistics

Threads
474,034
Messages
2,570,356
Members
47,002
Latest member
RobertoLip

Latest Threads

Top