本文整理汇总了C#中System.Windows.Forms.VScrollBar.Dispose方法的典型用法代码示例。如果您正苦于以下问题:C# VScrollBar.Dispose方法的具体用法?C# VScrollBar.Dispose怎么用?C# VScrollBar.Dispose使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.VScrollBar
的用法示例。
在下文中一共展示了VScrollBar.Dispose方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DescriptionControl
public DescriptionControl()
{
ResizeRedraw = false;
InitializeComponent();
// Get the size of a vertical scroll bar.
VScrollBar scrollBar = new VScrollBar();
scrollWidth = scrollBar.GetPreferredSize(new Size(200,200)).Width;
scrollBar.Dispose();
}
示例2: MainFrame
int vScrollbarWidth; // width of a default scroll bar.
#endregion Fields
#region Constructors
public MainFrame()
{
Font = SystemFonts.MessageBoxFont;
InitializeComponent();
// Set height of tab strip appropriately.
courseTabs.Height -= (courseTabs.DisplayRectangle.Height + 5);
// Using the property designer for these doesn't totally work.
veryLowIntensityMenu.Tag = 0.4;
lowIntensityMenu.Tag = 0.55;
mediumIntensityMenu.Tag = 0.7;
highIntensityMenu.Tag = 0.85;
fullIntensityMenu.Tag = 1.0;
// Set the trackbar properties that can't be done in the designer.
zoomTracker.TrackBar.TickStyle = TickStyle.None;
zoomTracker.TrackBar.Minimum = 0;
zoomTracker.TrackBar.Maximum = 100;
// Get the size of a vertical scroll bar.
VScrollBar scrollBar = new VScrollBar();
vScrollbarWidth = scrollBar.GetPreferredSize(new Size(200, 200)).Width;
scrollBar.Dispose();
showToolTips = Settings.Default.ShowPopupInfo;
SetMenuIcons();
Application.Idle += new EventHandler(Application_Idle);
}