Is there a reason it has to be a page frame? What you've described is a good candidate for a modal form.
>I have a small application based that is accessed via a pageframe. On one of the pages the users will flag a number of items with a check box in a grid window. I want to not allow the user to select another page from the pageframe or close the application until the make a specific indication about how to process the items they selected. I have two buttons on the page to process selections or quit without processing. I want them to have to select one of the buttons before leaving. As it goes now they can just clock on another page tab. When I enter the specific page I set a public variable so I know that they are there and have made selections. I can check this value in the deactivate event and pop a messagebox but I don't know how the stop exiting from the original tab.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer