I really like the way AJAX sites gives auto hints for what you should
input on various form fields as you tab down or click into fields. I
want to implement something like this on my c# forms but I'm having a
little bit of trouble.
I've decided to use a balloon tooltip that will appear (hopefully to
the right of the text field) whenever the field gets focus.
Right now I have an event handler that gets the name of the control,
sets up various tooltip options and has a switch statement to set the
"help text". I've tied this to Focus->Enter and I have another event
handler that hides the tooltip. I'm only using one tooltip object for
the application.
My problem is that I can't get the behavior just right. First of all
the tooltip disappears after I move the mouse away even though
AlwaysShow is set to true. Secondly I'd really like to to the right of
the text field, right now it just shows up in the middle or where ever
it feels like. It's kind of iffy if the tooltip shows up right away if
my mouse isn't hovering over the textfield, even though I have it set
to show up as part of the event handler. Finally I don't think Focus-
>Enter gets called when the form is opened since the cursor goesstraight to the first field but my code isn't called.
Anyone have any pointers or links to sites that explain what I'm
trying to accomplish here? Basically I just want my tooltips to be
more "sticky" and not controlled by the position of the mouse.
Thanks,
- James