delete unused code from custom form (win)