L
Lonifasiko
Hi,
I've got a button (Button2 from OpenNETCF 2.0) that must show the name
of the month centered and in a second line, the number of the year,
also centered. I've tried "\r\n", "\n" and "\r" but as the month name
length is variable, the number of the year is not centered. A pity!
Therefore, I've added a label for each button in my form, and I use
this label for showing the number of the year. I'm haviong problems
with the transparency of the label. I know it's quite a common problem,
therefore I did a little research and tried to put it into practice. No
success.
The problem comes when button is pressed. Button's backcolor is changed
to ActiveBackColor, and label's backcolor is not refreshed. I've
developed a CustomLabel control for supporting transparency but I see
that OnPaint and OnPaintBackground of my CustomLabel control are not
executed when button is being pressed.
Any hints on this? I've tried many examples found in the newsgroup, but
no success at all! Please, I would really appreciate any help.
Thanks very much in advance.
I've got a button (Button2 from OpenNETCF 2.0) that must show the name
of the month centered and in a second line, the number of the year,
also centered. I've tried "\r\n", "\n" and "\r" but as the month name
length is variable, the number of the year is not centered. A pity!
Therefore, I've added a label for each button in my form, and I use
this label for showing the number of the year. I'm haviong problems
with the transparency of the label. I know it's quite a common problem,
therefore I did a little research and tried to put it into practice. No
success.
The problem comes when button is pressed. Button's backcolor is changed
to ActiveBackColor, and label's backcolor is not refreshed. I've
developed a CustomLabel control for supporting transparency but I see
that OnPaint and OnPaintBackground of my CustomLabel control are not
executed when button is being pressed.
Any hints on this? I've tried many examples found in the newsgroup, but
no success at all! Please, I would really appreciate any help.
Thanks very much in advance.