当前位置: 首页>>代码示例>>C#>>正文


C# UserControl.Show方法代码示例

本文整理汇总了C#中System.Windows.Forms.UserControl.Show方法的典型用法代码示例。如果您正苦于以下问题:C# UserControl.Show方法的具体用法?C# UserControl.Show怎么用?C# UserControl.Show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Forms.UserControl的用法示例。


在下文中一共展示了UserControl.Show方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: financeToolStripMenuItem_Click

 private void financeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     hideActiveControl();
     if ( finance == null)
     {
         finance = new Finance();
         containerpane.Controls.Add(finance);
     }
     ActiveControl = finance;
     ActiveControl.Dock = DockStyle.Fill;
     ActiveControl.Show();
 }
开发者ID:nviswanathan,项目名称:FinanceApp,代码行数:12,代码来源:MainWindow.cs

示例2: TaskWizard

        public TaskWizard()
        {
            Me = this;
            _hookID = SetHook(_proc);
            InitializeComponent();
            btnTaskComplete.Click += BtnTaskComplete_Click;
            btnTaskIncomplete.Click += BtnTaskIncomplete_Click;

            this.ControlBox = false;

            //Disable resizing
            /*
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            */

            taskOrder = GetScrambledTaskOrder();

            currentTaskPage = GetTaskPage(Task.None);
            this.Controls.Add(currentTaskPage);
            currentTaskPage.Show();
        }
开发者ID:Malakahh,项目名称:BesterUI,代码行数:23,代码来源:TaskWizard.cs

示例3: LoadControl

 //右边panel加载control
 private void LoadControl(UserControl frm)
 {
     if (frm == null)
     {
         panRight.Controls.Clear();
         labTitle.Text = "当前站点IP:" + Global.Params.BoxIP + "。    ";
     }
     else
     {
         panRight.Controls.Clear();
         frm.Show();
         frm.Dock = DockStyle.Fill;
         panRight.Visible = false;
         panRight.Controls.Add(frm);
         System.Threading.Thread.Sleep(150);
         panRight.Visible = true;
         if (frm.Name == "frmError")
             labTitle.Text = "当前站点IP:" + Global.Params.BoxIP + "。    ";
         else
             labTitle.Text = "当前站点IP:" + Global.Params.BoxIP + ",当前模块:" + frm.Text + "。    ";
     }
 }
开发者ID:FeelingMars,项目名称:DispatchPlatform,代码行数:23,代码来源:NewFormMain.cs

示例4: ShowView

 private void ShowView(UserControl view)
 {
     view.Show();
     foreach (UserControl v in this.views) if (v != view) v.Hide();
 }
开发者ID:kukareka,项目名称:printbox,代码行数:5,代码来源:PB_MainFrm.cs

示例5: ButonTest_Click

        private void ButonTest_Click(object sender, EventArgs e)
        {
            UserControl abc = new UserControl();
            abc.Show();
            //TweetAccountManager tweetAccountManager = new TweetAccountManager();
            //tweetAccountManager.Username = "sociopro";
            //tweetAccountManager.Password = "qwerty1234";
            ////tweetAccountManager.proxyAddress = "173.208.131.234";
            ////tweetAccountManager.proxyPort = "8888";
            ////tweetAccountManager.proxyUsername = "usproxy";
            ////tweetAccountManager.proxyPassword = "logic";


            //tweetAccountManager.follower.logEvents.addToLogger += new EventHandler(logEvents_Follower_addToLogger);
            ////tweetAccountManager.logEvents.addToLogger += logEvents_Follower_addToLogger;
            //tweetAccountManager.Login();
            ////tweetAccountManager.UpdateProfile();

            //string unfollowuserId = "569071036";
            //string unfollowpost_authenticity_token = tweetAccountManager.postAuthenticityToken;
            //string unfollowpostdata = "user_id=" + unfollowuserId + "&post_authenticity_token=" + tweetAccountManager.postAuthenticityToken;
            //////string unfollowresponse = tweetAccountManager.globusHttpHelper.postFormData(new Uri("https://api.twitter.com/1/friendships/destroy.json"), unfollowpostdata, "https://api.twitter.com/receiver.html", "", "XMLHttpRequest", "true", "");
            //string res_PostFollow = tweetAccountManager.globusHttpHelper.postFormData(new Uri("https://api.twitter.com/1/friendships/destroy.json"), unfollowpostdata, "https://api.twitter.com/receiver.html", string.Empty, "XMLHttpRequest", "true", "https://api.twitter.com");

            //ParseJson();

            GlobusHttpHelper httpHelper = new GlobusHttpHelper();
            string res = httpHelper.getHtmlfromUrl(new Uri("http://www.wotif.com/hotel/View?hotel=W1711"), "", "");
        }
开发者ID:prog-moh,项目名称:twtboard,代码行数:29,代码来源:frmMain-New+UI.cs

示例6: setPanel2

 public void setPanel2(UserControl uc)
 {
     splitContainer.Panel2.Controls.Add(uc);
     panelHome.Hide();
     uc.Show();
 }
开发者ID:herberttagudin,项目名称:cms-sln,代码行数:6,代码来源:CMS.cs

示例7: SwitchDetailsVisible

 private void SwitchDetailsVisible(UserControl toShow, UserControl toHide)
 {
     if (toShow.Visible)
         return;
     tlDetailsSide.SuspendLayout();
     toShow.Show();
     toHide.Hide();
     int hideColumn = tlDetailsSide.GetColumn(toHide);
     int showColumn = tlDetailsSide.GetColumn(toShow);
     tlDetailsSide.ColumnStyles[hideColumn].SizeType = SizeType.Absolute;
     tlDetailsSide.ColumnStyles[hideColumn].Width = 0;
     tlDetailsSide.ColumnStyles[showColumn].SizeType = SizeType.Percent;
     tlDetailsSide.ColumnStyles[showColumn].Width = 100F;
     tlDetailsSide.ResumeLayout();
 }
开发者ID:Winsor,项目名称:ITInfra,代码行数:15,代码来源:AccountEquipmentMainForm.cs

示例8: ActivateOptionControl

 /// <summary>
 /// 激活控件
 /// </summary>
 /// <param name="optionControl"></param>
 private void ActivateOptionControl(UserControl optionControl)
 {
     if (optionControl == null) throw new ArgumentNullException("optionControl");
     for (int i = 0; i < splitContainer1.Panel2.Controls.Count; i++)
     {
         splitContainer1.Panel2.Controls[i].Hide();
     }
     optionControl.Show();
 }
开发者ID:qianlifeng,项目名称:easyvsx,代码行数:13,代码来源:SettingFrm.cs

示例9: ButonTest_Click

 private void ButonTest_Click(object sender, EventArgs e)
 {
     try
     {
         UserControl abc = new UserControl();
         abc.Show();
         GlobusHttpHelper httpHelper = new GlobusHttpHelper();
         string res = httpHelper.getHtmlfromUrl(new Uri("http://www.wotif.com/hotel/View?hotel=W1711"), "", "");
     }
     catch { }
 }
开发者ID:ahmetDostr,项目名称:twtboard,代码行数:11,代码来源:frmMain_NewUI.cs

示例10: NextTask

        private void NextTask()
        {
            this.Controls.Remove(currentTaskPage);
            currentTaskPage = GetTaskPage(taskOrder[currentTaskIndex]);
            this.Controls.Add(currentTaskPage);
            currentTaskPage.Show();

            if (TaskStarted != null)
            {
                TaskStarted(taskOrder[currentTaskIndex]);
            }

            currentTaskIndex++;
            if (currentTaskIndex >= taskOrder.Count)
            {
                DisableBtns();
            }
        }
开发者ID:Malakahh,项目名称:BesterUI,代码行数:18,代码来源:TaskWizard.cs

示例11: ShowPanel

 private void ShowPanel(UserControl panel)
 {
     HideActivePanel();
     m_curVisiblePanel = panel;
     panel.Show();
 }
开发者ID:rahulmuley,项目名称:ProjectsGIT,代码行数:6,代码来源:MainForm.cs


注:本文中的System.Windows.Forms.UserControl.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。