grip003
Regular
This is a continuation for the thread Keypress Anomaly in which I was having a problem with an MDI application and picking up enter on keypress in a text box. I am still having that problem and I have been able to recreate it with a very simple example that I am attaching.
Here is a step by step guide to reproduce the problem:
1) Run the application.
2) Click the Child1 menu item in the MDI Parent - Notice the textbox has the ReadOnly property set to true.
3) Click Enable - the textbox ReadOnly property is set to false & Message "Allowing enter to be pressed" comes up - click ok.
4) Click in the textbox & press enter - Message "You pressed enter!!" comes up - click ok.
5) Click Disable - the textbox ReadOnly property is set to true.
6) Click the Child2 menu item in the MDI Parent.
7) Click the x to close child 2.
8) (In Child1) click Enable - Message "Allowing enter to be pressed" comes up - click ok (textbox ReadOnly set to false).
9) Click in the textbox & press enter - No message comes up and the textbox becomes readonly. Why?
Any help from this will be really appreciated. Thanks in advance.
Here is a step by step guide to reproduce the problem:
1) Run the application.
2) Click the Child1 menu item in the MDI Parent - Notice the textbox has the ReadOnly property set to true.
3) Click Enable - the textbox ReadOnly property is set to false & Message "Allowing enter to be pressed" comes up - click ok.
4) Click in the textbox & press enter - Message "You pressed enter!!" comes up - click ok.
5) Click Disable - the textbox ReadOnly property is set to true.
6) Click the Child2 menu item in the MDI Parent.
7) Click the x to close child 2.
8) (In Child1) click Enable - Message "Allowing enter to be pressed" comes up - click ok (textbox ReadOnly set to false).
9) Click in the textbox & press enter - No message comes up and the textbox becomes readonly. Why?
Any help from this will be really appreciated. Thanks in advance.