Results 1 to 3 of 3

Thread: How to make an OCX

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    How to make an OCX

    How do you go about making an OCX? I started to make a user control i dont know if that is the way to go. I am doing this in VB just incase. Also how would you go about making a better rich text box? Do you just drop a RTB on there and make your changes, in other words how do you accept text? Maybe I am just confused.

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Yes, you start by making a user control. When you compile it, it compiles to an ocx.

    Just drop a richtextbox into your control and start adding code. To inherit it's methods, just use the ActiveX Control Interface Wizard, in the Add-in Manager.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313
    Well I wanted to change the text color and what not. like this post Like if you take the word if and change it to IF and then make it blue. I used the code provided by Matthew Gates but it flickers so I was going to attempt to write an OCX control to suite my needs a little bit better. So that was why I was asking. Maybe someone can just point me in the right direction.

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