System.Windows.Forms.Control.Show C# (CSharp) Method

Show() public method

public Show ( ) : void
return void
		public void Show () {
			this.Visible = true;
      
      Form f = this as Form;
      if( f!=null )
        f.InternalShow();
		}

Usage Example

Example #1
0
 /// <summary>
 /// 添加界面
 /// </summary>
 /// <param name="control"></param>
 public void AddControl(string title, WinForms.Control control)
 {
     if (control == null)
     {
         MessageBox.Show("没有配置该插件", "提示");
     }
     else
     {
         if (control is WinForms.Form)
         {
             WinForms.Form frm = control as WinForms.Form;
             if (frm.TopLevel)
             {
                 frm.Show();
                 return;
             }
         }
         //
         WindowsFormsHost formsHost = new WindowsFormsHost
         {
             Child = control
         };
         TabItem item = new TabItem()
         {
             Content = formsHost,
             Header  = title
         };
         control.Show();
         grdTab.Items.Add(item);
         grdTab.SelectedItem = item;
     }
 }
All Usage Examples Of System.Windows.Forms.Control::Show
Control