|
-
July 2nd, 2008, 02:01 AM
#1
Display "&" character in label control
Hi,
I have a string which has a "&" character. Example, "Electrical & Electronic". When I execute a form, the "&" character does not show on label control of the form. Only the words "Electrical Electronic" were display. Anybody know what is the problem?
TQ.
-
July 2nd, 2008, 02:14 AM
#2
Re: Display "&" character in label control
I haven't tried it in dot net but in VB to display a & you use && a single & tells it to underline the next character. && tells it to display the &. much like you need to use "" to display a ". Not sure but you could probably use the ascii value in the form of a chr() statement as well.
-
July 2nd, 2008, 09:22 AM
#3
Re: Display "&" character in label control
WillAtwell is correct, you're going to need to have it as :
Code:
Label1.Text = "Electrical && Electronic"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|