Tooltip on NumericUpDown

  • Thread starter Thread starter Guest
  • Start date Start date
* said:
My tooltip on a NumericUpDown is not showing. Is this a
bug?

Seems to be a bug. I am able to repro that on Windows XP Professional +
..NET 1.1.
 
Yes, sort of. Hopefully the following will explain why it behaves like this

A NumericUpDown control actually consists of three controls (windows); a
parent
control and two child controls.

The parent control (which is what you see as an instance of the
NumericUpDown class)
is completely covered by its two child controls (a textbox and a button)

Your tooltip is assigned to the parent control but since it's completely
covered
it never receives the necessary mouse events. Instead these goes to the
textbox
and button.


As a workaround try assigning your tooltip to the first (the button) or the
second
(the textbox) control in the controls collection of the numericupdown.
Something
like this:

myTooltip.SetTooltip(myNumericUpDown.Controls(0), "Bla, bla, bla")
'Button
myTooltip.SetTooltip(myNumericUpDown.Controls(1), "Bla, bla, bla")
'Textbox

/claes
 
Back
Top