Hi
In my control derived from UltramaskedEdit,
Inherits
Infragistics.Win.UltraWinMaskedEdit.UltraMaskedEdit
I have a sub which was generated by the VS environment when I selected the Enter event. it does not ever fire. This is what it looks like below. My question is how do I hook up these events inside my class.
'do some stuff here
'but this is never never fired.
Sub
I tried it out and it woks fine for me. I'm attaching my sample here.
Both the OnEnter and the Enter event of the derived control both fire any time I click on the control.
If it's not working for you, then it must either be a bug in an old version you are using or a problem caused by something else in your application.
Yep. That it is.
Your control doesn't give me access to these events when I am building a class that inherits from it in this version of the Infragistics controls.
Hi,
The article you listed here does not apply to this situation for two reasons.
First, this article is talking about a cell in the grid, not a standalone control on a form.
Secondly, this article applies to editors that display a child control (usually a TextBox) when they go into edit mode, and the UltraMaskedEditor does not do this.
Are you using your control in a grid cell? If so, then the grid does not use the Control itself, the control simply provides a copy of it's internal editor for use by the grid. So no events on the control will fire when you are working in the grid - the grid has it's own events.
If you are using a standalone control, and the OnEnter is not firing, then something is wrong.
Here, I found this buried in the code samples. This is the reason I can't get certain events.
DoubleClick (and other events) will not fire when the mouse is over a cell that is already in or goes into edit mode. See Article 3036 for more information on why this occurs and how to get around it.
Here is Article 3036 link:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=3036
Quick update: OnMaskChanged works when I override it in my control that is Inheriting UltraMaskedEdit. OnMaskChanged does hit my breakpoint. OnEnter, OnMouseDown, OnKeyDown - all these do not. I am using Overrides and not handles. Also, I'm using v8.2 of the library and am not able to upgrade due to internal restrictions. And so I will find another way to accomplish my team's goals. I may open a bug report. Thanks for your help.
Protected
MaskChangedEventArgs)