02 2021 档案
摘要:private void button2_Click(object sender, EventArgs e) { foreach (Control cur in Controls) { if (cur is TextBox ) { string name = cur.Name; cur.Text =
阅读全文
摘要:1.限制窗体的大小(1)Width属性:用于获取和设置窗体的宽度 (2)Height属性:用于获取和设置窗体的高度 (3)FormBorderStyle属性:用于获取和设置窗体的边框样式 None:无边框 FixedSingle:固定的单行边框Fixed3D:固定的三维边框FixedDialog:固
阅读全文
摘要://新建一个数据库文件 SQLiteConnection.CreateFile("MyDatabase.sqlite"); //创建一个连接到指定数据库 SQLiteConnection m_dbConnection = new SQLiteConnection("Data Source=MyDat
阅读全文
摘要:private void button2_Click(object sender, EventArgs e) { Button newButton = new Button();//创建一个名为newButton的新按钮 newButton.Width = 150; newButton.Left=
阅读全文
摘要:private void pictureBox1_Click(object sender, EventArgs e) { //点击获取picturebox内的X,Y坐标 int x = Control.MousePosition.X; int y = Control.MousePosition.Y;
阅读全文