'Declaration Public Function GetFittedWidth() As Integer
'Usage Dim instance As WinCalculator Dim value As Integer value = instance.GetFittedWidth()
public int GetFittedWidth()
'Declaration Public Function GetFittedWidth() As Integer
'Usage Dim instance As WinCalculator Dim value As Integer value = instance.GetFittedWidth()
public int GetFittedWidth()
By default, the height and width of the buttons will be resized if/when the WinCalculator is resized however; explicitly setting the ButtonHeight and ButtonWidth properties will prevent the height and width of the buttons from being modified when the calculator is resized. This also implies that the size of the WinCalculator control will not adapt to the size defined by the ButtonHeight and ButtonWidth properties and clipping of the buttons may occur.
The fitted width and height of the WinCalculator control (the size necessary to correctly display all the buttons and the formula box) can be retrieve using the GetFittedWidth and GetFittedHeight methods and assigned to the Width and Height properties of the WinCalculator control.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2