I am in the process of making a custom button, and in the resize event, I only want to perform a redraw when in design time. If the button is running in the compiled program, I want it to ignore the command. Is there any way to distinguish between design time and run time in a control?

Thanks,
Jordan