MDI form and buttons not responding

G

Guest

I am writing an order entry app. The main data entry windows is an MDI child window, which contains a tabcontrol with 5 tabpages, each representing a step in the order entry process.
At the beginning of a cycle only a single tab page is shown; when a step is completed the next tab is shown. When an order is entered completely the tab pages are cleared and only the first tab is visible.

For data entry the enter key is used heavily to accept a selection. The focus shifts from one entry field to another and finally to the accept button.
During the first order everything works fine. When the focus is on a OK button and I hit the enter key, the application moves on.

Everything seems to work OK until I enter the second order. The enter key works OK on all entry fiels except for the OK buttons. These buttons respond to a mouseclick, but not to the enter key anymore.
A second observation is that it becomes impossible to close the MDI child window. I see that the form closing event is fired, but nothing happens after that.

This problem is making me crazy. Does anybody have a hint or a solution direction?

Thanks in advance
 
S

Sijin Joseph

Can you give some code in the Ok button click event...and other code
snippets from the parts of code involved?

--
-Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph


Jos Driessens said:
I am writing an order entry app. The main data entry windows is an MDI
child window, which contains a tabcontrol with 5 tabpages, each representing
a step in the order entry process.
At the beginning of a cycle only a single tab page is shown; when a step
is completed the next tab is shown. When an order is entered completely the
tab pages are cleared and only the first tab is visible.
For data entry the enter key is used heavily to accept a selection. The
focus shifts from one entry field to another and finally to the accept
button.
During the first order everything works fine. When the focus is on a OK
button and I hit the enter key, the application moves on.
Everything seems to work OK until I enter the second order. The enter key
works OK on all entry fiels except for the OK buttons. These buttons respond
to a mouseclick, but not to the enter key anymore.
A second observation is that it becomes impossible to close the MDI child
window. I see that the form closing event is fired, but nothing happens
after that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top