How to change the Calculator Layout using CalcPopup Property in Windows Forms CurrencyEdit

28 Apr 20211 minute to read

This page explains How to Change the Calculator layout using CalcPopup property and more details.

How to Change the Calculator layout using CalcPopup property

Sometimes we may be in need of a calculator with Windows standard layout. By changing the CalcPopup property, we can do the same. Include this code fragment in the FormLoad event.

// Changes the layout of the calculator.
PopupCalculator pc=new PopupCalculator();
pc.LayoutType=CalculatorLayoutTypes.WindowsStandard;
pc.ParentControl=currencyEdit1;
currencyEdit1.CalcPopup=pc;
' Changes the layout of the calculator.
Dim pc As PopupCalculator = New PopupCalculator()
pc.LayoutType=CalculatorLayoutTypes.WindowsStandard
pc.ParentControl=currencyEdit1
currencyEdit1.CalcPopup=pc