Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ERROR when I change from std exe to activex control

Status
Not open for further replies.

mathprof

Programmer
Nov 8, 2000
37
US
I downloaded a VB6 Project from Planet Source Code. The author says that the code can be used in any which way. I need some help but the author’s email link is not working.

The project has a form and user control. The Project Property Type is Standard exe. I compiled the project and the exe runs OK.

However, I want a Control.

If I change the Project Type to ActiveX Control, and Make ocx I get a message box that says: No Public UserControl Detected

I can modify the control and recompile as a standard exe with no problem.

What I want to do is compile as a control and use it with Word. How can I work around the “No Public UserControl detected?”




 
Usercontrol is like a form, only for activex controls. It's a container for other controls or just for you to draw in (if you don't use other controls). It's the actual class that is exposed as an activex control to the outside world. You can't compile an activex control without at least one usercontrol...


Greetings,
Rick
 
Thank you LazyMe.
You got me thinking.
I check the properties of the control that was not being recognized and changed Public from false to true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top