Focus less control

  • Thread starter Thread starter Rene
  • Start date Start date
R

Rene

What do I need to do to be able to make a control that does not allow focus,
basically have the same behavior as a label control?



Thank you.
 
Subclass the control and SetStyle(ControlStyles.Selectable, false);

-vJ
 
Actually, it tells you exactly how. The only thing you have to do is
remove the semi-colon from the line of code provided, and it should work.
 

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