Panel Pop Out

We have several customized forms with multiple tabs and the tabs constantly pop out if you barely move over them. It is very frustrating. Is there a way to prevent the tabs from popping out at all and make them stationary?

Okay, I am trying to use this however how do I modify it for Epicor 10 CSharp coding. This is what I have and I’m getting compile errors.