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

Resource Editor Embeding

Status
Not open for further replies.

0CODE

Programmer
Feb 8, 2004
63
CA
I am using an ocx file (custom one) in my app and working off of it by adding it to the tools window. Now I open the exe in VS.NET 2002. I added the ocx it like a normal resource (selected import etc) and got that done. But im pretty sure i need to do proper naming of the resource or something because it cant find it when i runn the app and generates an error.

any help/comments would be greatly appreciated - thanks
 
did you add it to your references?

Christiaan Baes
Belgium
"What a wonderfull world" - Louis armstrong
 
no, I right click on the toolbox window and click "Components..." then browse for the ocx file and put it on the form by clicking on it in the toolbox and just drawing it like any other control.

also this program is in VB6 but I doubt that would matter at all.
 
you must check if it is in you references from the project you are in, if not add it. some ocx or dll's do not automatically add themselves to your references, most do.

Christiaan Baes
Belgium
"What a wonderfull world" - Louis armstrong
 
it didn't so i had to first to uncheck it from the componenets window, then add it through the references, but how do i acess it from there? (VB6 this program is on)
 
are you working in VB6?


Christiaan Baes
Belgium
"What a wonderfull world" - Louis armstrong
 
then try posting in the vb6 forum


Christiaan Baes
Belgium
"What a wonderfull world" - Louis armstrong
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top