radiobutton----C#窗体
来源:互联网 发布:傲视天地宝石进阶数据 编辑:程序博客网 时间:2024/06/16 15:42
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace trytry
{
public partial class radiobutton : Form
{
public radiobutton()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
textBox1.Font = new Font("宋体", textBox1.Font.Size);
if (radioButton2.Checked == true)
textBox1.Font = new Font("楷体", textBox1.Font.Size);
if (radioButton3.Checked == true)
textBox1.Font = new Font("华文行楷", textBox1.Font.Size);
if (radioButton4.Checked == true)
textBox1.ForeColor = Color.Red;
if (radioButton5.Checked == true)
textBox1.ForeColor = Color.Blue;
if (radioButton6.Checked == true)
textBox1.ForeColor = Color.Green;
if (radioButton7.Checked == true)
textBox1.Font = new Font(textBox1.Font.FontFamily, 12);
if (radioButton8.Checked == true)
textBox1.Font = new Font(textBox1.Font.FontFamily, 16);
if (radioButton9.Checked == true)
textBox1.Font = new Font(textBox1.Font.FontFamily, 18);
//textBox1.Text = "欢迎学习C#.NET";
}
}
}
- radiobutton----C#窗体
- C#动态生成RadioButton
- c# 控件RadioButton
- C#窗体-个人简历生成(自己设计并编写一个 Windows 应用程序,要求用到TextBox、GroupBox、RadioButton )
- C#窗体
- 在C#中使用RadioButton
- C# 登录窗体 窗体调用
- C# 登录窗体 窗体调用
- c#窗体依附于另一个窗体
- 获得窗体中的 多选框CheckBox和单选框RadioButton
- radiobutton
- radioButton
- Radiobutton
- RadioButton
- RadioButton
- RadioButton
- radiobutton
- RadioButton
- 理想收入
- Chain
- 文件系统与DBMS系统的区别
- 大学生的生存状态
- 内部排序
- radiobutton----C#窗体
- 列表框----C#窗体
- jdbc中调用oracle 返回游标类型的存储过程
- 递归逆序
- Windows应用程序基础知识
- 那些相见恨晚的 JavaScript 技巧
- 谈谈我用linux经历及一些看法
- 常见的Hibernate面试题
- Hibernate细粒度的小应用