PDA

Click to See Complete Forum and Search --> : activex problem


RAKESHTATI
Mar 12th, 2007, 06:03 AM
hai friends,

i am doin my project in vb 6.0 in that one i stucked off with this one
i made one ocx file and in that file i used a richtextbox and written code relating that one and then i opened a standard exe form where i used that ocx file then i have written some code on richtextbox then it didnot work the code written in standard form is not working and it was showing that object not found

the problem here is how to get access of the richtextbox used in my ocx file

Hack
Mar 12th, 2007, 06:06 AM
Is this OCX file a user control?

Have you added it to your project so it appears on your toolbox bar?

(It would need to be loaded via Project/Components)

RAKESHTATI
Mar 12th, 2007, 06:15 AM
it is a user control
and
i have done like that only using projects and components

cutamacious
Mar 16th, 2007, 12:57 PM
it is a user control
and
i have done like that only using projects and components

Have you created a new instance of the control?? alos you have to enure that the OCX is also present on the M/c where you are trying to access RTB. Also you have to expose the properties and methods of the RTB in your OCX file so that they could be accessed in your Standard EXE