bbm Posted November 27, 2021 Share Posted November 27, 2021 Hi, I have a PageControl with 2 TabSheets. Data can be edited in both tab sheets. If data have been changed, I would like to display a message that they must first be saved, or that switching to the other tab sheet is prevented. How can I prevent switching? Best regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2021 Share Posted November 27, 2021 4 hours ago, bbm said: I have a PageControl with 2 TabSheets. Data can be edited in both tab sheets. If data have been changed, I would like to display a message that they must first be saved, or that switching to the other tab sheet is prevented. How can I prevent switching? Hello, This post may help you: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 27, 2021 Share Posted November 27, 2021 Or just use OnBeforeActivate event. \FMSoft\Framework\uniGUI\Demos\Desktop\PageControl - BeforeActivate Quote Link to comment Share on other sites More sharing options...
bbm Posted November 29, 2021 Author Share Posted November 29, 2021 Hi Sherzod, thank you very much! Best regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.