I developed a user control as simple as allow user to select either a file or a directory, depends on a property named STYLE.

I put 2 of these controls in the same form, one with STYLE=1 and one with STYLE=0 (set inside the code, and following this sequence)

When I execute the program, both controls seems to have STYLE=0. If I reverse the sequence of the code, both will become STYLE=1.

It seems that the variables inside the user control, have been shared.

I think I may mess up something like instance or ....

Would anybody tell me what I have done wrong?