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 = 阅读全文
posted @ 2021-02-27 00:03 杨咩咩plus 阅读(257) 评论(0) 推荐(0) 编辑
摘要:1.限制窗体的大小(1)Width属性:用于获取和设置窗体的宽度 (2)Height属性:用于获取和设置窗体的高度 (3)FormBorderStyle属性:用于获取和设置窗体的边框样式 None:无边框 FixedSingle:固定的单行边框Fixed3D:固定的三维边框FixedDialog:固 阅读全文
posted @ 2021-02-26 12:47 杨咩咩plus 阅读(1874) 评论(0) 推荐(0) 编辑
摘要://新建一个数据库文件 SQLiteConnection.CreateFile("MyDatabase.sqlite"); //创建一个连接到指定数据库 SQLiteConnection m_dbConnection = new SQLiteConnection("Data Source=MyDat 阅读全文
posted @ 2021-02-26 10:28 杨咩咩plus 阅读(627) 评论(0) 推荐(0) 编辑
摘要:private void button2_Click(object sender, EventArgs e) { Button newButton = new Button();//创建一个名为newButton的新按钮 newButton.Width = 150; newButton.Left= 阅读全文
posted @ 2021-02-25 18:30 杨咩咩plus 阅读(2055) 评论(0) 推荐(0) 编辑
摘要:private void pictureBox1_Click(object sender, EventArgs e) { //点击获取picturebox内的X,Y坐标 int x = Control.MousePosition.X; int y = Control.MousePosition.Y; 阅读全文
posted @ 2021-02-25 13:06 杨咩咩plus 阅读(3529) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示