Posted by Kristof in Various
Again.
For the sake of keeping your computer clean: please read the setup screens and uncheck every checkbox that you DON’T need. You don’t need this ‘SearchTheWeb’ toolbar, this ‘BetterSearch’ toolbar.
And I am sick that people expect me to find a license for their Office/Windows/whatever.
I am a responsible person and I don’t do this. I do buy a lot of my software, and if not possible I always try to find a free counterpart.
No Comments »
Today I bumped into this problem at work. I had a label on a form and I had to display an employee’s department.
Quite easy, but the department sometimes contains an ampersand. And that ampersand was not displayed. I went looking for this problem and I bumped into this property (in System.Windows.Forms.Label): Label.UseMnemonic Property
Setting this property true means: an ampersand that precedents a character underlines that character, so that it can be used in conjunction with the alt key.
The problem arises when you for example pull a department from the database with an ampersand (for example: shipping & hauling). Putting this into the label causes the & not to be displayed since the label assumes that the ampersand means ‘underline the character after the ampersand’.
To display the ampersand you’ve got two choices:
- set UseMnemonic to false so that it doesn’t parse the ampersand.
- if you need the mnemonic: replace the & with &&, that displays 1 ampersand in the label.
No Comments »