Question

I am new to c# and I have this problem:

I have here a textbox with errorProvider and a label above my textbox..

After validating the value in my textbox, whenever value entered is not acceptable, error icon should appear at the right side of the label with its tooltip message shown when icon is hovered.

But whenever I click the error icon, its tooltip message will be (disposed? or) disappear and will not reappear even if the mouse pointer is moved away from the error icon and hovered again to the icon. It will just reappear when the whole window is closed and reopened again. Its a bit annoying.

How can I make it not disappear whenever error icon is clicked? Please help..

Was it helpful?

Solution

After searching for a solution to this problem I've found out that this issue on errorProvider tooltip message is reported as bug to connect.microsoft.com on "8/29/2006 11:16:27 AM" but has already been closed "as won't fix".[it's already 5 years since the feedback..(-_-)] I think it's now the time they "should fix this bug because it is impeding the usage of the errorprovider control."

I have also found a workaround that'll solve this issue.

I hope this helps and also they will fix this issue sooner.

OTHER TIPS

That is the default behavior of Windows tooltips, they are shown when you hover some icon in the system as a help message for the illustrated command.

ErrorProvider control for Windows Forms just show a non-clickable icon near another control to inform the user about an invalid input and its tooltip will have the common Windows icon behavior.

This method is ineffective if you must get the error message with clicks, because this control do not expose to observers any click or mouse methods, so you'll have to follow another way.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top