How can we underline a particular character in the Text of the Window Label

 Posted by Ddd on 1/26/2011 | Category: C# Interview questions | Views: 6665 | Points: 40

example: if we want to write Hello on a Label and underline the 'H' character,

1) Type &Hello in the text property

2) Set UseMnemonic property of the Label to true(It is true by default)

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Questpond on: 1/27/2011 | Points: 10
The more appropriate question here would be how can we enable short cut keys for UI control events. I wonder why people will ask questions like how to underline a text.

My Top .NET interview questions
Posted by: Ddd on: 1/27/2011 | Points: 10
The students studying .NET courses often put these type of questions. I'm sorry if the title of
the question did not appeal you.So, what I have learnt is that whenever I'm posting something,
I should have advanced knowledge of everything that is going to come in somebody's mind.

Login to post response