本文整理匯總了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);
}