Solved

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

Posted on 2006-11-02
4
204 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 200 total points
ID: 17864615
Sort && File
0
 
LVL 8

Assisted Solution

by:sabeesh
sabeesh earned 100 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 100 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 100 total points
ID: 17865746
button properties

text = "Sort && File"

if u wanna use it in code

use

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

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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