如何更正此鼠标单击错误?

时间:2016-12-11 07:35:27

标签: python python-3.x zelle-graphics

我的程序是一个秒表,基本上,当你点击public partial class Invoices : System.Web.UI.Page { MySql.Data.MySqlClient.MySqlConnection conn ; MySql.Data.MySqlClient.MySqlCommand cmd; String querystr; protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { //save image into database string str = FileUpload1.FileName; FileUpload1.PostedFile.SaveAs(Server.MapPath(".") + "//Invoices//" + str); string path = "~//Invoices//" + str.ToString(); MySqlConnection conn = new MySqlConnection("Server=127.0.0.1;Database=admindb;Uid=root;Pwd=8888;"); MySqlCommand cmd = new MySqlCommand("insert into invoicesfp values (@v1)", conn); conn.Open(); cmd.Parameters.AddWithValue("v1", TextBox1.Text); cmd.ExecuteNonQuery(); conn.Close(); Label4.Text = "Image uploaded sucessfully"; } else { Label4.Text = " Please, upload the image "; } } } 时,它应该在它停止时停止。但是,我不知道如何在不重置时钟的情况下做到这一点。此外,如果我在stopImage按钮外单击两次,时钟开始,如果我然后单击startImage,它将重置为零。我正在使用的图形包是Zelle's graphics

stopImage

0 个答案:

没有答案