How can I show different value when mouse over custom textbox?
-
I created a custom control textbox in WinForm which have another value field called "fullValue" which is a little different than the .text value. Is there a way where I can make it to where when I mouse over this textbox, it show fullValue as a tooltip? Any help would be highly appreciated, thanks in advance!
-
I created a custom control textbox in WinForm which have another value field called "fullValue" which is a little different than the .text value. Is there a way where I can make it to where when I mouse over this textbox, it show fullValue as a tooltip? Any help would be highly appreciated, thanks in advance!
Well, if you check what events are available, you will see
MouseEnter
andMouseLeave
for when the mouse moves over the control in question. So in the MouseEnter event you would havethis.Text = this.fullValue;
or something and in MouseLeave i guess you would restore the text.My current favourite word is: Bacon!
-SK Genius