Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

Putting a visible '&' character in the name of a form component

Hello,

I know that the '&' character in the name of a form component specifies which key will also trigger the component's event.  So, a '&' character doesn't show up in the name - it only underlines the character in the name it's in front of.

So, what if you want a '&' character to be visible in the component?  For example, what if you want a button that says "Sort & File" ?

Thanks in advance,
Tim
0
tmitchell68
Asked:
tmitchell68
4 Solutions
 
AlexFMCommented:
Sort && File
0
 
sabeeshCommented:
You can give && characters for a get & in display
0
 
angus_young_acdcCommented:
For me using this.Text = "Hello & Goodbye" in the Form1_Load works perfectly fine.  
0
 
Gautham JanardhanCommented:
button properties

text = "Sort && File"

if u wanna use it in code

use

btnUpdate.Text = "Sort && File";
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now