code=C#]
if(e.KdyChar == 46&&textBox1.Text ==""[
{
textBox1.Text = "0.";
}
int i ;//位数
if (i == textBox1.Text.Length)
{
e.Hander = true
}
[/code])
这些都是放在KeyPress事件下的
if(e.KdyChar == 46&&textBox1.Text ==""[
{
textBox1.Text = "0.";
}
int i ;//位数
if (i == textBox1.Text.Length)
{
e.Hander = true
}
[/code])
这些都是放在KeyPress事件下的
if(e.KdyChar == 46&&textBox1.Text =="")
{
textBox1.Text = "0.";
}
int i ;//位数
if (i == textBox1.Text.Length)
{
e.Hander = true
}
)[/code]
希望对你有帮助