就我按下空格会发送数据给接口,但是下一次发送的时候可能是因为textbox框里面没有清干净
有时候发给接口会收到错误的数字,所以要如何才能按下回车发送后,直接全部清除呢?
我用textbox1.text="";好像也没用!
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 13)
{
sendjson=textbox1.text;
requestorder("http://minong.7in6.com/api/index/gd_info", sendjson, "POST");
textbox1.text="";
}
}