Hi allI have a simple form (Framework 3.5 and VS 2012) with two controls on it.One standard TextBox and one UltraTextEditor (12.1).On both I hook to the Click event:- this.textBox1.Click += new System.EventHandler(this.textBox1_Click);- this.ultraTextEditor1.Click += new System.EventHandler(this.ultraTextEditor1_Click);When I now click on the standard TextBox, the event is fired.When I click on the UltraTextEditor, the event is not fired.What am I doing wrong ??Thanks and best regardsFrank Uray
I copied the text of the article here:
If an UltraWinEditor control is in edit mode, it displays an edit window over the control. In this case, clicking on the control will not fire the MouseDown, MouseUp, or Click events of the control. This applies to MouseDown, MouseUp, MouseEnter, MouseLeave, MouseHover, MouseMove, Click, anc DoubleClick.
The reason these events do not fire is because the click actually takes place on the edit window and not the UltraWinEditor Control. The control, therefore, gets no messages and fires no events. This is the correct behavior. The same behavior can be seen with other DotNet controls that display child edit windows, like the Microsoft Grid.If you need to trap these events, it can be done by trapping the ControlAdded and ControlRemoved events. These events fire when the edit windows are created and destroyed. Inside these events, you can dynamically hook into the Mouse events of the edit control in order to respond to Mouse operations inside the edit control. The attached samples demonstrate this technique for the MouseDown, MouseUp, Click, and DoubleClick events.
ultrawineditors_edit_window_mouse_events_cs.zip Sample showing how to trap mouse events when the mouse is over an UltraWinEditor control in edit mode. C#.ultrawineditors_edit_window_mouse_events_vb.zip Sample showing how to trap mouse events when the mouse is over an UltraWinEditor control in edit mode. VB.
Hi Frank,
I just tried it and it's working fine for me. Can you try again?
link does not work: "Page Error"
FAQ:Mouse events such as MouseDown, MouseUp, and DoubleClick do not fire for an UltraWinEditor it is in edit mode.