I guess I used DoOnChangeBounds method. Try to move resizing code there, if it won't help we can investigate further.
Set the parent of your control to the parent of the EDIT control?Currently you have it set to the Edit as the parent and your boundaries are incorrect for that.Looks like you are trying to draw a border around the edit control ?if a border is all you want then you maybe better off overriding the Paint cycle of the EDIT control and paint on the EDIT's parent.