Take MFC as an example:
1. Select “Properties” in the right-click menu of the control.
2. Add the corresponding event from the properties.
3. You can add your event handling code, "sName" is the name of component.
void CBeauGaugeExampleDlg::ValueChangeBgv2activexctrl1(LPCTSTR sName, double fValue)
{
// TODO: Add your message handler code here
}
4. Configuration of C# and VB.NET is similar to MFC.