Results 1 to 7 of 7

Thread: VB6 OCX in VB5

  1. #1

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    If I develop an OCX in VB6 professional, can I use it within VB5 SP3 without any trouble?

    I use VB6 (Yes, I have paid for it , I installed it yesterday) at home and VB5 at work.

    As for now, I know that it will contain only 2 commandbuttons, 1 shapecontrol, 1 timer.

    Is there any difference in the way you write the code for an ocx in VB6 versus VB5?

    ------------------
    On Error Goto Bed =:0)
    [email protected]

  2. #2
    Lively Member Ishamel's Avatar
    Join Date
    Nov 1999
    Location
    Edinburgh, Scotland
    Posts
    112

    Post

    I've never compiled a VB6 ocx for VB5, but going on the controls you listed, I don't think there will be an issue. (There might be if you start throwing in controls such as Common Dialog)

    Even if it turns out there is a problem, you should be able to get round it by recompiling the VB6 ocx on your VB5 machine. That should avoid any conflict between VB6 control versions and VB5 control versions.

    Good Luck.

    ------------------
    Ishamel
    [email protected]

    How can I tell you I love you when you are sitting on my face?

  3. #3

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    Thank you Ishamel
    I'm fairly new to ocx programming.
    Can you or anyone explain to me how I can make the background of my ocx transparent or maybe how I can set the backcolor of the background. what is most effective?

    I've figured out that I could make a property called backcolor, then What??

    Thanks


    ------------------
    On Error Goto Bed =:0)
    [email protected]

  4. #4
    Lively Member Ishamel's Avatar
    Join Date
    Nov 1999
    Location
    Edinburgh, Scotland
    Posts
    112

    Post

    I'm just as new to ocx programming as you, so the words 'blind leading the blind' spring to mind.

    As for making the control transparent, you should see the BackStyle property when you select your UserControl. Setting this to Transparent, should make the control transparent when you add it to any forms.

    Hope this helps.

    ------------------
    Ishamel
    [email protected]

    How can I tell you I love you when you are sitting on my face?

  5. #5

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Post

    Oh man
    Thank you, Just tell me the name of the guy/girl sitting on your face and I will kick him/her to the end of the world. And then you will be blind no more
    (After that I will bring him/her back so that you can express your love to him/her )

    Sometimes the answer is to close to see.
    Bless you


    ------------------
    On Error Goto Bed =:0)
    [email protected]

  6. #6
    Lively Member Ishamel's Avatar
    Join Date
    Nov 1999
    Location
    Edinburgh, Scotland
    Posts
    112

    Post

    For the record, it would most definately be her.

    And if she wasn't available, it would be her sister!

    ------------------
    Ishamel
    [email protected]

    How can I tell you I love you when you are sitting on my face?

  7. #7
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    To use an vb6 ocx in vb5, you need to have installed the vb6 runtime dll's. if you have them,there shouldn't be a problem using it.

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