publicvoidDisableActiveFormControls(){// Create an instance of a form and assign it the currently active form.Form currentForm = Form.ActiveForm;// Loop through all the controls on the active form.for(inti =0; i < currentForm.Controls.Count; i++) {// Disable each control in the act...
form2.SetDesktopLocation(x, y); x += 30; y += 30; // Keep the current form active by calling the Activate // method. this.Activate(); this.Button1.Enabled = false; } // Updates the label text to reflect the current values of x // and y, which was were incremented in the Bu...
form active by calling the Activate// method.this.Activate();this.Button1.Enabled =false; }// Updates the label text to reflect the current values of x// and y, which was were incremented in the Button1 control's// click event.privatevoidForm1_Activated(objectsender, System.EventArgs e)...
{// Create an instance of a form and assign it the currently active form.Form currentForm = Form.ActiveForm;// Loop through all the controls on the active form.for(inti =0; i < currentForm.Controls.Count; i++) {// Disable each control in the active form's control collection.current...
命名空间: System.Windows.Forms 程序集: System.Windows.Forms.dll 表示组成应用程序的用户界面的窗口或对话框。C# 复制 public class Form : System.Windows.Forms.ContainerControl继承 Object MarshalByRefObject Component Control ScrollableControl ContainerControl Form ...
form active by calling the Activate// method.this.Activate();this.Button1.Enabled =false; }// Updates the label text to reflect the current values of x// and y, which was were incremented in the Button1 control's// click event.privatevoidForm1_Activated(objectsender, System.EventArgs ...
Define word form. word form synonyms, word form pronunciation, word form translation, English dictionary definition of word form. Noun 1. word form - the phonological or orthographic sound or appearance of a word that can be used to describe or identify
命名空间: System.Windows.Forms 程序集: System.Windows.Forms.dll 表示组成应用程序的用户界面的窗口或对话框。C# 复制 public class Form : System.Windows.Forms.ContainerControl继承 Object MarshalByRefObject Component Control ScrollableControl ContainerControl Form 派生 System.ComponentModel.Design.CollectionEditor...
命名空间: System.Windows.Forms 程序集: System.Windows.Forms.dll 表示组成应用程序的用户界面的窗口或对话框。C# 复制 public class Form : System.Windows.Forms.ContainerControl继承 Object MarshalByRefObject Component Control ScrollableControl ContainerControl Form 派生 System.ComponentModel.Design.CollectionEditor...
ActiveForm Gets the currently active form for this application. ActiveMdiChild Gets the currently active multiple-document interface (MDI) child window. AllowDrop Gets or sets a value indicating whether the control can accept data that the user drags onto it. (Inherited from Control) AllowTranspar...