Results 1 to 5 of 5

Thread: Converting VB5 controls to VB6 controls

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Posts
    5

    Post

    Hi,
    does anybody know how to make an "old" VB project use VB6 controls instead of VB5 controls (I mean for example: how to use MScomctl.ocx instead of Comctl32.ocx)? I need this without having to re-design all the forms (I can't change components if they're used in some forms of the project)...
    I tried editing .vbp and .frm file but it seems not to be sufficient.
    Thanks,
    Bye,
    Francis

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

    Post

    There must be a setting somewhere.. upgrade ActveX controls.. now I only can't find where....

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Posts
    5

    Post

    Thanks Crazy D,
    it's in Project properties, but it seems not to do anything (perhaps it works with .ocxs with the same name, but as I said, I would like to change old comctl32.ocx with new -and more performant I think - MScomctl.ocx).
    Any more suggestion?
    Thanks and bye,
    Francis

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    I know it's a pain, but there's only one thing you can do. Open your .vbp file in notepad. Change the reference Comctl32 to the MSComctl. It should look something like this:

    Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0; comctl32.ocx

    Change it to something like:

    Object={6B7E6392-850A-101B-AFC0-4210102A8DA4}#1.3#0; mscomctl.ocx

    Regards,

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]



  5. #5

    Thread Starter
    New Member
    Join Date
    Jan 1999
    Posts
    5

    Post

    Thank you Serge,
    I had already had that idea myself, but it seems not to be sufficient. I changed my .frm too, but still it doesn't work.
    Where is the error?
    Bye,
    Francis

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