The issue I'm having is this:
Prior to clicking the command button, if the current focus is on either a grid or a couple of other controls on this page, the pop-up form shows up just fine and everything works. If, however, the focus is just on the page itself or on a spinner control on the page, then the form gets shown but it appears underneath the original form and I cannot do anything with it. It doesn't respond to any events.
Any ideas?Try putting this in the Activate of your modal form:
Thisform.AlwaysOnTop = .T.
Thisform.AlwaysOnTop = .F.