>Naomi --
>
>You will see the effect you describe if you have changed the top/left/height/width of a control that has a non-zero anchor setting.
>
>So, the trick is to set the anchor to zero before making the change, then set it back to its original value afterward.
>
>Jim
>
Yes, that's how I solved it, but it doesn't look like the editbox is resized correctly. It is now a bit too big. I'm playing with that form now. Wanted to reply to Dmitry with a clever response as "no, I will keep all of you suffering in darkness", but you were quicker...
Made few minor fixes and now everything works as it should.
If it's not broken, fix it until it is.
My Blog