• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

How to use ocx in VB

Hi All,

I developed a ocx control on VB.Net and I want to use it with VB exe.How can I do that.Please help me
0
hansol5
Asked:
hansol5
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
simply add the .ocx in the project components, and it will appear in the components toolbox, where you can take it as any other control
0
 
kaliyugkaarjunCommented:
0
 
Éric MoreauSenior .Net ConsultantCommented:
Hi hansol5,

> I developed a ocx control on VB.Net

How? VB.Net is not able to compile a OCX file. If you created a user control in VB.Net, this one cannot be hosted on a VB6 form.    

Cheers!
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
hansol5Author Commented:
Yes emoreau,

I created the user interface in .net.My other application is in VB6.And I have to use that control in VB62 Application.Is thr any way to do that.
0
 
Éric MoreauSenior .Net ConsultantCommented:
VB6 cannot use controls created by .Net.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Accept: emoreau
>VB6 cannot use controls created by .Net.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now