Jul 13 2009

Is it OK to change a winforms designer file?

I have created a class that is simply THIS

Class UserControlBase
     Inherits UserControl
End Class

Then I changed the Inherits clause in each of my UserControls designer file to

   Inherits UserControlBase

I know that generally you shouldn't manually mod the designer file. But in cases like this what else can you do? Is this OK? Is there a best practice I don't know about? Is there some other way to accomplish the same end (extending UserControl) ?