本文整理汇总了C#中Pane.Select方法的典型用法代码示例。如果您正苦于以下问题:C# Pane.Select方法的具体用法?C# Pane.Select怎么用?C# Pane.Select使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pane
的用法示例。
在下文中一共展示了Pane.Select方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: interlinkSelection_
/// <summary>
/// Creates link beetween forms and tree views, whenever Form1 or Form2 selected by user,
/// appointed form will be activated
/// </summary>
/// <param name="Form1TreePane">Form of the tree view control</param>
/// <param name="Form1Pane">Pane that corresponds with tree view control</param>
/// <param name="Form2">Form that shows data from tree view</param>
private void interlinkSelection_(Form Form1TreePane, Pane Form1TreePanePane, Form Form2View)
{
Form2View.Activated += new EventHandler((Object sender, EventArgs arg) =>
{
try
{
Form1TreePanePane.Select();
}
catch (Exception)
{
}
});
Form1TreePane.LostFocus += new EventHandler((Object sender, EventArgs arg) =>
{
try
{
}
catch (Exception)
{
}
});
Form1TreePane.GotFocus += new EventHandler((Object sender, EventArgs arg) =>
{
try
{
Form2View.BringToFront();
}
catch (Exception)
{
}
});
}