hi,

I have created an ocx which has a private integer variable called rcount.

this ocx loads a form which has a datagrid displayed.
In the datagrids gotfocus event i m reading this variable and positioning the grids row to that variable.
I set the variable in the datagrids validate event.

problem comes when i have more than one instance in the same form.
like if i use it once and the count property is set to 4. in the next instance also it is being set to 4, whereas it should be the default i have set to 0. I want it to persist only for that instance so if there are more than one instance it should have its own variable value.

what could be the reason?