I have created an OCX, and it has some custom properties, ie left, top, width, height. When I add the ocx to a project, I can access the properties by right clicking on the control, but I cannot access them in the code.

myocx.left

Gives me an error saying that left is not a member of myocx. I can access the properties by calling myocx.GetLeft and myocx.SetLeft, but I would like to be able to just use the property name. Any help you could give would be greatly appreciated.

Thanks,
sfought