Using an OCX without a form
Posted on 1997-03-29
I have an OCX component included in my project (my.ocx) and under the object browser, I see the class, mMyObject listed and belonging to MyLib (lib name of my.ocx).
Now, normally I can put the control on a from very easily and set it's parameters. eg. form1.mMyObject1.UserName = "fred", or form1.mMyObject1.Action = 1
I want to be able to use the ocx/class without putting the control on a form. I want a formless (no Interface) program, so I need to be able to access the ocx routines.
How do I do that under VB5.0 Pro?