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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb user control 3

Status
Not open for further replies.

omlac

Programmer
Apr 7, 2008
13
ZA
i have created a vb user control but i dont know know how to make it an exe or dll. when it appears on the tool box its greyed/disabled. can some one help on how to active it.
 
User controls compile to an .OCX ... not an EXE or DLL.

How did you build the user control?

I assume that you started a new project and designated it to be a user control. If you did then open that project and select "Make ???.ocx" where "???" is the name of the User Control project.
 
>when it appears on the tool box its greyed/disabled

On the toolbar at the top of your screen click "Window"
then click "Cascade", now close every window in the cascade except the window that contains the project in which you are trying to use the control.
[wiggle]

 
The point is that you can't use the control if you have it open in a design window. Close the design window and your control will be enabled.

If you don't understand what I'm talking about, post back and I'll step you through an example.
 
guys thanks very much, it was the design issue, im the dump man walking.
 
Mind you, VB is pretty specific about what the problem is if you actually try clicking on the greyed-out icon ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top