Results 1 to 3 of 3

Thread: Use ocx control in VB.NET [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Posts
    521

    Use ocx control in VB.NET [RESOLVED]

    I have a foldertreeview control that is basically a treeview that looks like the treeview in explorer. I've looked high and low and maybe I'm just being stupid, but I can't figure out how to use the control in VB.NET. I've added a reference to it, but I have a feeling I need to convert it somehow. Is there any way to convert it apart from converting a VB6 project with one of these foldertreeview controls?
    Last edited by VictorB212; May 31st, 2003 at 11:10 AM.

  2. #2
    New Member
    Join Date
    Apr 2003
    Location
    Nottingham
    Posts
    14
    If you haven't already you should add the control to the Toolbox (Customize Toolbox menu item). As it's an OCX control you should be able to find it on the COM Components tab. When you drag it onto your form (assuming thats what you are going to do!) it will create an wrapper class (prefixed Ax) and automatically add this as a reference in your project.

    Also see
    ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vbtskAddingActiveXControlsToForm.htm in the on-line help.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Posts
    521
    Thank you very much -- this is exactly what I wanted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width