ShowModal and Main Form Scrollbars


When a modal popup is shown the main form can still be scrolled. Is it possible to block this?



We'd rather not generally do this as the modal popup might also require scrolling.
If such functionality is needed in your app, a possible solution is to block scrolling before you show the modal popup and enable scrolling again after this.

Here are some techniques to stop the scrolling: