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
Links on this page are broken.
Hi,
I just tried it and I am able to open the C# project linked above in VS2012 with no problem. VS will prompt you to upgrade the sample, of course, but the upgrade process is very simple and it works just fine for me. You will probably need to upgrade the problem itself the version of the Infragistics assemblies you are using. But even if you don't want to do that, you can still look at the code in the sample and apply it to your application.
Anyway, just in case you are still unable to get to the sample, I copied the code for you here:
//Handles UltraCalculatorDropDown1.ControlAdded, UltraColorPicker1.ControlAdded, UltraComboEditor1.ControlAdded, UltraCurrencyEditor1.ControlAdded, UltraDateTimeEditor1.ControlAdded, UltraFontNameEditor1.ControlAdded, UltraNumericEditor1.ControlAdded, UltraTextEditor1.ControlAdded public void UltraWinEditor_ControlAdded(object sender, System.Windows.Forms.ControlEventArgs e) { e.Control.MouseDown+= new MouseEventHandler(UltraWinEditor_Editor_MouseDown); e.Control.MouseUp+= new MouseEventHandler(UltraWinEditor_Editor_MouseUp); e.Control.Click+= new EventHandler(UltraWinEditor_Editor_Click); e.Control.DoubleClick+= new EventHandler(UltraWinEditor_Editor_DoubleClick); } public void UltraWinEditor_ControlRemoved(object sender, System.Windows.Forms.ControlEventArgs e) { e.Control.MouseDown-= new MouseEventHandler(UltraWinEditor_Editor_MouseDown); e.Control.MouseUp-= new MouseEventHandler(UltraWinEditor_Editor_MouseUp); e.Control.Click-= new EventHandler(UltraWinEditor_Editor_Click); e.Control.DoubleClick-= new EventHandler(UltraWinEditor_Editor_DoubleClick); }#region Editor Events private void UltraWinEditor_Editor_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { Control c = (Control)sender; this.EventListBox.Items.Add(c.Parent.Name + "_Editor_MouseDown"); } private void UltraWinEditor_Editor_MouseUp(Object sender, System.Windows.Forms.MouseEventArgs e) { Control c = (Control)sender; this.EventListBox.Items.Add(c.Parent.Name + "_Editor_MouseUp"); } private void UltraWinEditor_Editor_Click(Object sender, System.EventArgs e) { Control c = (Control)sender; this.EventListBox.Items.Add(c.Parent.Name + "_Editor_Click"); } private void UltraWinEditor_Editor_DoubleClick(Object sender, System.EventArgs e) { Control c = (Control)sender; this.EventListBox.Items.Add(c.Parent.Name + "_Editor_DoubleClick"); }#endregion
did you ever get a resolution? We are having the same issue over here and want to know what to do to resolve. The only answer I see is a very broad one, and the C# sample does not open in VS2012:
----------------------------------
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.
-----------------------------------
Can someone explain how to do this?
Thanks
thanks !
no, it does not work.This is the resolved URL:http://devcenter.infragistics.com/ErrorHandler.aspx?aspxerrorpath=/Support/KnowledgeBaseArticle.aspx