Hi,
When you use an ampersand (&) symbol in a string, VB converts it to an underscore (_). How can I prevent it. I need to display an ampersand in a lable control.
Thanks
Printable View
Hi,
When you use an ampersand (&) symbol in a string, VB converts it to an underscore (_). How can I prevent it. I need to display an ampersand in a lable control.
Thanks
Code:MsgBox "this does look like an ampersand huh? " & Chr(38) & " yep, it is! :)"
Jop your code doesn't show tha ampresand in a Label
Use This
Two ampresands will show oneCode:Label1.Caption = "this does look like an ampersand huh? && yep, it is! "
&& will put an ampresand
label1.caption = "hello&&bye"
Hey you're right guys :) hehe dumb to only test it with a msgbox
Just set the label's UseMnemonic property to False.
Label1.CAption = "This is a right answer &&"
Label1.Caption = "This is a 10 year old thread"
Really? The asker is still alive? :)
I'm alive && well, thank you very much :)