首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C# > C# 使用字符串数组创建一组单选框数据

C# 使用字符串数组创建一组单选框数据

  • 资源大小:30.32 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: C#源码

资 源 简 介

C# 基于字符串数组创建一组单选按钮的例子,附上了例子源代码,大家可了解C#字符串数组的简单应用。   以下是例子中的代码,运行后可见如下图所示的图片效果:   //基于字符串数组创建一组单选按钮   string[] MyArray = new string[4];   MyArray[0] = "渝北区";   MyArray[1] = "巴南区";   MyArray[2] = "长寿区";   MyArray[3] = "南岸区";   RadioButton[] MyRadioButtons =new RadioButton[4];   for (int i = 0; i < 4; ++i)   {    MyRadioButtons[i] = new RadioButton();    MyRadioButtons[i].Text = MyArray[i];    MyRadioButtons[i].Location = new System.Drawing.Point(    10, 20 + i * 20);    this.groupBox1.Controls.Add(MyRadioButtons[i]);   }   this.groupBox1.Text = "请评选全市卫生城区:";

文 件 列 表

srcfans.com
字符串数组
MyForm
Form1.Designer.cs
字符串数组
字符串数组
MyForm
Form1.cs
srcfans.com
VIP VIP
  • Aaron 6小时前 成为了本站会员

  • 6小时前 成为了本站会员

  • DAAD 13小时前 成为了本站会员

  • 哇哈哈哈哈哈哈哈 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 维他 1天前 成为了本站会员

  • agnostic 2天前 成为了本站会员

  • 子非鱼 2天前 成为了本站会员

  • 柠檬汽水 3天前 成为了本站会员

  • 歪猴 3天前 成为了本站会员

0.181659s