WinForm学习
大大打打
这个作者很懒,什么都没留下…
展开
-
WinForm学习03 下拉菜单
功能,选择下来菜单中的内容时显示出来窗体布局:控件:combobox下拉内容设置位置:属性中的 Item 属性使用的事件位置逻辑代码// 当选择下拉菜单中的选项时执行 private void combobox_SelectedIndexChanged(object sender, EventArgs e) { // 显示一下当前选中的什么 MessageBox.Show("选中了:"原创 2021-05-23 21:56:22 · 2110 阅读 · 0 评论 -
WinForm学习02 复选框
功能:模拟密码输入时勾选是否显示密码使用控件:checkbox 复选框逻辑代码// checkbox 自带的事件,当按键状态改变就会触发回调函数 private void Changedbox(object sender, EventArgs e) { // 获取当前的按键状态 bool ischecked = checkbox.Checked; if (ischecked) {原创 2021-05-23 21:24:07 · 602 阅读 · 0 评论 -
WinForm学习01
功能:点击按钮显示当前时间窗体布局:逻辑代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace原创 2021-05-20 22:39:54 · 57 阅读 · 0 评论