for web application validation controls are there to validate control
but in windows application it is little bit difficult
i am giving the below code to validate dacimal values of a textbox
Ex:Let you need to enter a textbox decimal values like(123.34) instead of no rtestriction
no need to set any properties of textbox.
just in KeyPress u call this below method and Pass before and after decimal values.
if u want to enter like(2124.98) so need to pass bd value =4 and ad value = 2
VB.NET
How Was the Coding??
Santosh,Bangalore
but in windows application it is little bit difficult
i am giving the below code to validate dacimal values of a textbox
Ex:Let you need to enter a textbox decimal values like(123.34) instead of no rtestriction
no need to set any properties of textbox.
just in KeyPress u call this below method and Pass before and after decimal values.
if u want to enter like(2124.98) so need to pass bd value =4 and ad value = 2
How Was the Coding??
Santosh,Bangalore
I was searching for the same.
ReplyDeleteThanx a lot .