vb.net - Why are balloon tip position and stem orientation buggy? -
vb.net - Why are balloon tip position and stem orientation buggy? -
my problem:
i'm using balloon tip on text box indicate non-numeric entry (real-time). 1 time sec non-numeric character inputted, balloon tip position , stem orientation changes (inverts , undesirably
to reproduce: in visual studio, in design mode, drag text box , tooltip onto fresh form. use next is:code:
public class form1 private sub textbox1_textchanged(byval sender system.object, byval e system.eventargs) handles textbox1.textchanged if (not isnumeric(textbox1.text) , textbox1.text.length > 0) tooltip1.tooltiptitle = "input must numeric!" tooltip1.active = true tooltip1.isballoon = true tooltip1.show(vbnewline, textbox1, 45, -40) else tooltip1.active = false tooltip1.hide(textbox1) end if end sub end class
you can check if tooltip
visible before showing it:
private sub textbox1_textchanged(sender system.object, e system.eventargs) handles textbox1.textchanged if (not isnumeric(textbox1.text) , textbox1.text.length > 0) if tooltip1.gettooltip(textbox1) = "" tooltip1.tooltiptitle = "input must numeric!" tooltip1.active = true tooltip1.isballoon = true tooltip1.show(vbnewline, textbox1, 45, -40) end if else tooltip1.active = false tooltip1.hide(textbox1) end if end sub
vb.net winforms visual-studio tooltip balloon-tip
Comments
Post a Comment