Setting properties of a Custom Web Control

@

@vi B@ns

Hi,

I am making a web control which includes multiple controls (composite
server control) - Labels, Textboxes and Buttons.
I am setting the properties of individual controls (Labels, Textboxes
& Buttons) inside my composite server control.
I am facing problem with the "Font" property (of the Labels, Textboxes
& Buttons).
I am not able to set multiple styles - Bold, Italic & Underline.
Either I am able to set the Bold or Italic or Underline property.
I am not able to set any 2 of them simultaneously...

If I set two styles then I get the following error:
Object reference not set to an instance of an object.

Please help me with this.

Thanks & Regards,
Bans
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top