Brendan

Thank you Stefan, it works fine. I'm trying to figure out how to have the close button appear when I hover over a page, the same as VS 2012 does. How would I achieve that - in the MouseEnter
or MouseHover event?

Here is the code I used for when a tab is changed, I would still need this. I wasn't sure how to identify the page I never want closed, so I used the name (pgmain). I also had to add the On Error part as I was getting an error when starting the project. "An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object."

As to the exception that you are getting, it is caused by the fact that the first time the event is fired, the control still does not have its SelectedPage set, so it is null and throws an exception when you try to access it. You can overcome this with a simple check:

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.