In a child form, 1st control is Mandatory Text Box Control and it got the focus. While clicking the menu explorer which is actually in parent form, validating is calling on the text box. During that time EditorButtonClick event is not firing. Suppose if cursor flow inside the form. Even if validating is triggered. EditorButtonClick works fine.
Hi Madhan,
I am not sure I am following what you are saying here. You have a parent form and a child form, the child form has a textbox on that starts focused, and it that is required to be filled. If you click on the "Menu Explorer" of the parent form, it triggers validation for the text box. So here is where you lose me.During that time EditorButtonClick is not firing. During what time, when you are in the middle of validating? Are you asking why the EditorButtonClick doesn't trigger validation?
Can you give me more information. I am assuming you the child form is an MDI child, and the TextBox is an UltraTextEditor. That the EditorButton in question is in that same UltraTextEditor, added via the ButtonsLeft or ButtonsRight collections of the UltraTextEditor. Is that accurate?
The "Menu Explorer", I am not sure it matters, just that clicking outside the current form triggers validation on the child form. But if you think it is important can you describe what control it is.
I guess the ultimate question is what is happening, or what state of the controls and which controls are your referring to when you say During that time, that the EditorButtonClick event is not firing. If you could supply a simple sample that would of course be best.
Sorry for confusing the question what im supposed to ask. Yes.. its an MDIChild and it is UltraTextEditor. Whenever the cursor flow is inside the form. Its working fine.. i mean, i have written some coding in validation. It will not allow null value. so after validation, it will show some msg. then we fill the text box from helpclick. during that time, we can able to click the buttton and select value. Suppose while control is in MdiChild form, when we are accessing something in MdiParent. Cursor goes out of the Text Box and out od MdiChild form. During that time validation occurs. Then we are trying to fill the textbox. In the particular case, helpclick event or EditorButtonClick is not firing.
Hi,
I am still not entirely sure I am following. Yes when you access any control that takes focus on a different form, in this case a parent form, it will trigger validation on the child form, as it causes the leave event to fire, the leave event in turn triggers validation. If you are interacting with a control that doesn't take focus, like a MenuItem or the ToolbarsManager, as it doesn't take focus, and therefore doesn't trigger the leave event, validation doesn't occur.But it keeps on sounding like, while validation is occurring, you are simultaneously, trying to fillout the textbox and trigger an editorbutton click. So are you in the Validation event, simulating a click, or setting the textbox value? Or are you manually clicking the button or typing in the textbox, in which case, that would need to be either before or after the Validation event, not during.
While clicking out side the client form, validation occurs and it shows the mandatory mesaages too. Then while clicking the button inside text box, that event not firing. Even text box click event also not firing. Just to check the events.
As to why the Validat[ing|ed] events are not firing when you click the EditorButton that is inside the UltraTextEditor, that is expected because the control itself has not lost focus. If you specifically wanted it to Validate the control on the click of an editor button, you could handle the event and call Validate() on the UltraTextEditor. That being said, the Click|MouseClick|EditorButtonClick should all fire. The only thing that might block that, would be is if the messaging that you described is a Modal dialog and that dialog is still open. In which case, any interaction with anything else but that dialog, while the dialog is open will not be processed until that dialog is closed. If that is not the issue that you are having, I will need a sample application that demonstrates the behavior that you are seeing so that I can properly follow your issue.
Hope that helps,