示例#1
0
 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
     }
 }
示例#2
0
 // Ensures that tabbing across the container and the .NET controls
 // works as expected
 void CSActiveXCtrl_LostFocus(object sender, EventArgs e)
 {
     ActiveXCtrlHelper.HandleFocus(this);
 }
示例#3
0
 // 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);
 }