//Cbo控件数据源绑定DataTable DtType = noteType.GetTypeList("");  ...
首先,要想遍历,就必须找到你想找的表单里面的所有控件,然后一个个的逐一比对,当找到了你需要的控件的时候,再做你需要的操作。1、foreach方法foreach (Control control in ...
private void Form1_Load(object sender, System.EventArgs e){RegistryKey RootKey,RegKey; //项名为:HKEY_CURRENT_USER\So...
string key = @"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"; &n...
//以ToolStrip为例绘制简便背景e.Graphics.FillRectangle(new System.Drawing.Drawing2D.LinearGradientBrush(new System.Drawing.Point(...
Boolean mutexWasCreated;//声明一个Boolean值,用于下面的Out//true 为是否给予当前这个线程互斥的功能, true为是, false为否,也就是说是否不允许两个相同名称的线程存在//可以...