Solved

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

Posted on 2006-11-02
4
200 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now