-
I'm trying to display a text field from an SQL database in a VB label, eveything works fine apart from the fact the '&' symbol shows up as a '_'. I'm sure this is something to do with '&' being a special character in VB so how do i actually get it to display ???
Regards
Ian (New Guy!)
-
You need to put '&&' to show a single &.
If it is in a database field you will need to replace all &'s with &&.
regards
Chris
-
Thanks Chris, i figured it would be something silly like that but could'nt seem to find the answer ...
Ian.
-
The other option is to turn off the UseMnemonic property (make it false). That stops VB interpreting the & as an underline. A lot easier than search adn replace
- gaffa