public static void Unregister(Type t) { try { ActiveXCtrlHelper.RegasmUnregisterControl(t); } catch (Exception ex) { Console.WriteLine(ex.Message); // Log the error throw; // Re-throw the exception } }
// Ensures that tabbing across the container and the .NET controls // works as expected void CSActiveXCtrl_LostFocus(object sender, EventArgs e) { ActiveXCtrlHelper.HandleFocus(this); }
// This event will hook up the necessary handlers void CSActiveXCtrl_ControlAdded(object sender, ControlEventArgs e) { // Register tab handler and focus-related event handlers for // the control and its child controls. ActiveXCtrlHelper.WireUpHandlers(e.Control, ValidationHandler); }