How do I prevent the user from changing the selected tab page?

Can somedody give me an example code..

Thanks