Cbo控件数据源绑定
//Cbo控件数据源绑定
DataTable DtType = noteType.GetTypeList("");
cboNoteType.DataSource = DtType;
cboNoteType.DisplayMember = "type";
//Cbo控件数据源绑定
DataTable DtType = noteType.GetTypeList("");
cboNoteType.DataSource = DtType;
cboNoteType.DisplayMember = "type";
首先,要想遍历,就必须找到你想找的表单里面的所有控件,然后一个个的逐一比对,当找到了你需要的控件的时候,再做你需要的操作。1、foreach方法foreach (Control control in …
private List<News> GetNews(string html) &n…
private void Form1_Load(object sender, System.EventArgs e){RegistryKey RootKey,RegKey; //项名为:HKEY_CURRENT_USER\Software…
string key = @"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"; &n…
//获得程序集System.Reflection.Assembly assem = System.Reflection.Assembly.GetExecutingAssembly();…