hello again...
in my form for the "required" fileds i have masked text boxes.
For validation i use the MaskInputRejected event and finally i use tooltip for pop up msg.
my problem is the position of the tooltip..see the code
(the syntax i think is ok)
and i need the tool tip to be displayed nearby the specific maksed textbox
note that
1:my windows state in the main form is maximized
2: 2 docked panel inside the main form(panel 1,panel2)
3:1 sub form inside the panel2 where the masked boxes are there
the result is that the position of the tooltip msg is so different from what i need..
[/CODE]
in my form for the "required" fileds i have masked text boxes.
For validation i use the MaskInputRejected event and finally i use tooltip for pop up msg.
my problem is the position of the tooltip..see the code
(the syntax i think is ok)
VB.NET:
Private Sub MaskedTextBox1_MaskInputRejected(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MaskInputRejectedEventArgs) Handles MaskedTextBox1.MaskInputRejected
ToolTip1.ToolTipTitle = "text"
ToolTip1.Show("text2.", Me.MaskedTextBox1, Me.MaskedTextBox1.Location.X, Me.MaskedTextBox1.Location.Y, 3000)
.
.
.
.
.Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.ToolTip1.IsBalloon = True
End Sub
Private Sub MaskedTextBox1_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) Handles MaskedTextBox1.KeyDown
Me.ToolTip1.Hide(Me.MaskedTextBox1)
End Sub
and i need the tool tip to be displayed nearby the specific maksed textbox
note that
1:my windows state in the main form is maximized
2: 2 docked panel inside the main form(panel 1,panel2)
3:1 sub form inside the panel2 where the masked boxes are there
the result is that the position of the tooltip msg is so different from what i need..
VB.NET:
[CODE]
VB.NET: