What object WITH is referring to in this case? Are you sure that it's the line that generates the error?
>I am using mwresize to resize controls on my forms. mwresize uses .AddProperty() to store the original size/location of controls, however I am getting an strange error;
>
>On some controls the line
>
>.AddProperty("_nOriginalWidth",.Width)
>
>thows as data type mismatch error.
>
>It's not consitently the same type of control or same class, however on some controls it will occur everytime that control is accessed.
>
>For example, on one form with loads of controls, there are 4 edit boxes, all the same class. One is on a page in a pageframe, the others are in a grid on another page. The edit box on it's own and two of those in the grid play nicely, however one of the edit boxes in the grid throws this error.
>
>I can't see anything different about it.
>
>Any ideas?
>
>
>
>Gary.
--sb--