?
Solved

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

Posted on 2006-11-02
4
Medium Priority
?
206 Views
Last Modified: 2010-04-16
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
Comment
Question by:tmitchell68
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 800 total points
ID: 17864615
Sort && File
0
 
LVL 8

Assisted Solution

by:sabeesh
sabeesh earned 400 total points
ID: 17864892
You can give && characters for a get & in display
0
 
LVL 15

Assisted Solution

by:angus_young_acdc
angus_young_acdc earned 400 total points
ID: 17865133
For me using this.Text = "Hello & Goodbye" in the Form1_Load works perfectly fine.  
0
 
LVL 29

Assisted Solution

by:Gautham Janardhan
Gautham Janardhan earned 400 total points
ID: 17865746
button properties

text = "Sort && File"

if u wanna use it in code

use

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question