// Numeric textbox (accepts only numbers and shows a
// warning popup when invalid)
public class NumericTextbox : TextBox
{
protected override CreateParams CreateParams {
get
{
CreateParams cp = base.CreateParams;
cp.Style |= 0x2000; // ES_NUMBER
return cp;
}
}
}
String In Csharp
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment