Font.Text overridable?

D

Duron

I am writing a Custom Server Control and I'm wondering if I can override
Font.Name or Font.Color etc. just like I can override Text?

Thanks!
 
J

Janaka

What base class are you using? If its Control then Font won't be available
to override. You need to inherit from System.Web.UI.WebControls.WebControl
 
D

Duron

Thanks for the hint. I created a Custom Server Control and it inherits
Hyperlink. But I don't know how to inherit WebControl and make it work as
Hyperlink... Do you know how to do it or where I can find a tutorial or
example? Thank you.
 

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
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top