OCX Controls

C

Charles A. Lackman

Hello,

I have created a project that is dynamically adding an OCX control to my
form. I also have other OCX controls on the form that I have placed from
the designer.

When I call the form using ShowDialog, the forms Load_Event does not fire.
When I call the form using Show the forms Load_Event fires.

I need the form to be loaded in a model state.

Any Suggestions. I am using the Cameleon Button OCX.

Thanks,
Chuck
 
R

Rick Rothstein

Try Form.Show 1
The "1" says show it modally.

Even better, use the pre-defined VB constant, vbModal, to make reading
the code easier 6 months from now

Form.Show vbModal

(where Form is the name of the Form being shown, of course).

Rick - MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top