本文整理汇总了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();
}
示例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();
}
示例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 + "。 ";
}
}
示例4: ShowView
private void ShowView(UserControl view)
{
view.Show();
foreach (UserControl v in this.views) if (v != view) v.Hide();
}
示例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"), "", "");
}
示例6: setPanel2
public void setPanel2(UserControl uc)
{
splitContainer.Panel2.Controls.Add(uc);
panelHome.Hide();
uc.Show();
}
示例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();
}
示例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();
}
示例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 { }
}
示例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();
}
}
示例11: ShowPanel
private void ShowPanel(UserControl panel)
{
HideActivePanel();
m_curVisiblePanel = panel;
panel.Show();
}