>>Hi Hugo,
>>
>>This code is in a separate method of the form.
>
>That is why I was suggesting a two steps procedure, but I see Pertii's suggestion is better
I solved the problem. My original solution was only part of the iceberg. I had to also fix WriteBuffer method of the base class.
Anyway, finally the problem seems to be completely solved.
If it's not broken, fix it until it is.
My Blog