摘要: 类型: integer(int)、double、long:数値型 string:文字型 boolean:布尔型 写法: int i = int.Parse("1234"); long l = long.Parse("1234"); double d = double.Parse("124.3"); 阅读全文
posted @ 2024-03-22 16:24 OYそ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 焦点状态 ActiveControl 和 Focus ActiveControl = textBox1; 默认光标焦点在文本框textBox1处 textBox1.Focus(); 焦点转移到textBox1 2. 日期选择显示在文本框 创建伪 DateTimePicker: TextBox文 阅读全文
posted @ 2024-03-22 15:25 OYそ 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 一、 2个画面互相跳转 form1: private void label1_Click(object sender, EventArgs e) { //次画面を非表示 隐藏此画面显示2画面 this.Visible = false; Form2 f2 = new Form2(); f2.Show( 阅读全文
posted @ 2024-03-22 14:47 OYそ 阅读(1) 评论(0) 推荐(0) 编辑