成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

界面編程C# ListBox的基本操作

開發 后端
下面是C#界面編程的ListBox和ComboBox控件介紹,其中大部分是圍繞是C# ListBox介紹的,很基本,很實際的操作。

下面是C#界面編程的ListBox和ComboBox控件介紹,主要是關于關于C# ListBox的介紹。

  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.ComponentModel;  
  4. using System.Data;  
  5. using System.Drawing;  
  6. using System.Text;  
  7. using System.Windows.Forms;  
  8. namespace ListAndCombo  
  9. {  
  10.     public partial class ListAndCombo : Form  
  11.     {  
  12.         public ListAndCombo()  
  13.         {  
  14.             InitializeComponent();  
  15.         }  
  16.         private void Form1_Load(object sender, EventArgs e)  
  17.         {  
  18.             //初始化設置  
  19.             //ListBox 設置  
  20.             listBox1.Items.Add("1000 以下");  
  21.             listBox1.Items.Add("1001~2000");  
  22.             listBox1.Items.Add("2001~3000");  
  23.             listBox1.Items.Add("3001~4000");  
  24.             listBox1.Items.Add("4001~6000");  
  25.             listBox1.Items.Add("6001~8000");  
  26.             listBox1.Items.Add("8001~10000");  
  27.             listBox1.Items.Add("10000 以上");  
  28.             //ComboBox 設置  
  29.             comboBox1.Items.Add("身份證");  
  30.             comboBox1.Items.Add("學生證");  
  31.             comboBox1.Items.Add("教師證");  
  32.             comboBox1.Items.Add("軍人證");  
  33.             comboBox1.Items.Add("護照");  
  34.         }  
  35.         private void listBox1_SelectedIndexChanged(object sender, EventArgs e)  
  36.         {  
  37.             label3.Text = listBox1.SelectedItem.ToString();  
  38.         }  
  39.         private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)  
  40.         {  
  41.             label4.Text = comboBox1.SelectedItem.ToString();  
  42.         }  
  43.     }  
  44. }  
  45.  

以上就是對編程界面實現的C# ListBox的簡單介紹。

【編輯推薦】

  1. C#委托基礎:談委托和接口
  2. 簡單實現C# CheckBox單選的相關功能
  3. C# ServiceController類剖析
  4. C# HttpWebRequest提交數據方式淺析
  5. C#計算素數序列淺談
責任編輯:阡陌 來源: 網絡轉載
相關推薦

2009-09-08 15:39:00

2009-09-08 17:37:54

C# listbox控

2009-08-12 15:50:40

C# ListBox

2009-08-19 11:21:02

C# ListBox控

2009-08-14 14:19:50

Enhanced LiC#構建

2009-09-08 16:22:27

c# listBox

2009-09-08 14:54:40

C# listBox控

2009-09-02 18:11:24

C#鼠標

2009-09-08 16:34:49

C# Listbox

2009-09-08 15:12:07

C# ListBox

2009-09-10 12:00:09

C# listbox

2009-09-08 16:01:58

C# ListBox

2009-08-21 14:47:39

C#網絡編程

2009-09-08 15:50:44

c# listbox

2009-08-19 15:38:59

C#代碼

2009-09-08 14:43:41

C# listbox

2009-08-11 15:44:05

C#基本技巧

2009-08-26 10:34:15

C#類型C#變量

2009-08-24 11:02:52

C#接口映射

2009-08-24 09:55:26

C#接口轉換
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 中文字幕精品一区久久久久 | 龙珠z在线观看 | 欧美成人影院 | gogo肉体亚洲高清在线视 | 日本不卡免费新一二三区 | 欧美日韩精品一区二区三区四区 | 国产99久久久国产精品 | 久久综合激情 | 手机看黄av免费网址 | 久草.com| 欧美成人a∨高清免费观看 欧美日韩中 | 国产美女精品 | 久久久123| 国产日韩欧美精品一区二区三区 | 国产精品视频一区二区三 | 久久久久一区二区 | 久久久婷 | 亚洲欧美日韩精品久久亚洲区 | 一区二区三区四区在线视频 | 婷婷久久一区 | 日韩三级一区 | 中文字幕在线三区 | 欧美.com| 国产一区二区三区 | 99资源站| 国产综合网址 | 精品久久伊人 | 精品国产一区二区三区久久久四川 | 在线观看黄色电影 | 一级久久久久久 | 国产精品日韩高清伦字幕搜索 | 日韩国产精品一区二区三区 | 久久久精品影院 | 亚洲精品在线免费观看视频 | 91精品免费视频 | 一区二区在线看 | 中文字幕一区二区三区四区五区 | 日日摸日日添日日躁av | 国产精品区二区三区日本 | 麻豆国产一区二区三区四区 | 91伊人网 |