The other thing you can do is inherit a new for from your designed form and override the slots you want to code. That way when your gui class gets regenerated, you dont lose any of your code.