Answer Posted / mr. buntha khin
Sample code to use InStr() in VB.Net
Friend Function DecimolNumbers(ByVal KeyChar As Char, ByVal
TxtBox As TextBox) As Boolean
Select Case KeyChar.ToString
Case Keys.Delete.ToString
Return False
Exit Function
Case Keys.Left.ToString
Return False
Exit Function
Case Keys.Right.ToString
Return False
Exit Function
Case Keys.Tab.ToString
Return False
Exit Function
Case vbBack
Return False
Exit Function
Case Keys.Enter.ToString
Return False
Exit Function
Case Keys.Home.ToString
Return False
Exit Function
Case Keys.End.ToString
Return False
Exit Function
Case Keys.Escape.ToString
End Select
If (KeyChar.ToString = "." And InStr
(TxtBox.Text, ".") > 0) Then
Return True
Exit Function
End If
If KeyChar.ToString = "." Then Return False
If IsNumeric(KeyChar) = True Then
Return False
Else
Return True
End If
End Function
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
what is ODC and GDC?
What is checkpoints for quicktest professional?
What is the keyword view and expert view in qtp?
What is a quick test professional?
why text area checkpoints cannot used for web applications
Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.
Describe how Smart Identification is used
Can any suggest me what is exposure testing?
what is run-time data?
hi Friends ,willany body tell me what is the Scope for the automation Testing inht Future is their Or not And what is the Top Most Level in the testing section according the Pay scale
What is the differences between image check point and bit map check point?
Explain the Different types of QTP test assets and their extensions?
is it possible to add sheets to excel at runtime
your coming from electrical backgroung..but y ur coming to software side?