窗体实验之单选按钮
来源:互联网 发布:淘宝上品牌折扣店剪标 编辑:程序博客网 时间:2024/06/08 10:17
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication3{ public partial class Form1 : Form { string s; public Form1() { InitializeComponent(); } private void radioButton1_CheckedChanged(object sender, EventArgs e) { label1.Font = new Font("取第一个文本框内容", label1.Font.Size, label1.Font.Style); s = textBox1.Text; } private void radioButton2_CheckedChanged(object sender, EventArgs e) { label1.Font = new Font("取第二个文本框内容", label1.Font.Size,label1.Font.Style); s = textBox2.Text; } private void Form1_Load(object sender, EventArgs e) { textBox1.MaxLength = 6; textBox2.PasswordChar='*'; } private void button1_Click(object sender, EventArgs e) { label1.Text = s; } }}
0 0
- 窗体实验之单选按钮
- C# 窗体应用程序 之 单选按钮的实现 源代码
- 窗体(文本框,按钮,单选按钮,标签)
- C#--第11周实验--任务3--设计一个窗体,窗体上有两个文本框,一个按钮,2个单选按钮--实现单击按钮后,根据单选按钮,将对应文本框中内容显示在标签。
- C#课后习题---单选按钮实验
- C#窗体应用程序之 单选按钮与分组框 源代码
- win32之单选按钮
- html之单选按钮
- WinForm窗体中多个单选按钮单选的“最简单”实现
- Android之复选按钮、单选按钮、开关按钮
- C#课后习题--单选按钮和复选框实验
- Android之单选按钮对话框
- Android之单选按钮对话框
- Android入门之单选按钮(RadioButton)
- MFC 对话框之单选按钮-Radio
- Datatables之单选按钮的实现
- java核心技术卷 之单选按钮
- 窗体实验之文本框实例
- Masonry的基本使用
- iOS开发 获取公网IP和局域网IP地址
- Query获取Select
- OpenCL学习之介绍
- 修改vim的tab,使其占4个空格
- 窗体实验之单选按钮
- 顺序表应用3:元素位置互换之移位算法
- The underlying connection was closed:Could not establish trust relationship for the SSL/TLS secure
- 关于Android的.so文件你所需要知道的
- Drupal 模块使用心得
- 深入源码解析Android中的Handler,Message,MessageQueue,Looper
- mybatis以接口方式编程
- Crtmpserver的多进程实现方案
- iOS蓝牙调用的一般流程