Using an OCX in VB 3? 
Author Message
 Using an OCX in VB 3?

Does anyone know if it's possible to use a 16 bit OCX in a VB 3 program?
  I have a control that I really want to use, but my app is VB 3 and it
only comes in an OCX.  Please help me.  Thanks.
-Josh


Sun, 16 Aug 1998 03:00:00 GMT  
 Using an OCX in VB 3?

Quote:

>Does anyone know if it's possible to use a 16 bit OCX in a VB 3 program?
>  I have a control that I really want to use, but my app is VB 3 and it
>only comes in an OCX.  Please help me.  Thanks.

You're SOL.  Sorry.


Tue, 18 Aug 1998 03:00:00 GMT  
 Using an OCX in VB 3?

Quote:


>>Does anyone know if it's possible to use a 16 bit OCX in a VB 3 program?
>>  I have a control that I really want to use, but my app is VB 3 and it
>>only comes in an OCX.  Please help me.  Thanks.

>You're SOL.  Sorry.

Not exactly true. If the OCX you want to use is invisible at runtime
and doesn't use any events, you can use it in VB3. For example, this
code fragment uses the 16-bit KeyState OCX from VB3:

Dim x As object
Dim State As Integer

    Set x = CreateObject("KeyStatLib.MhState")
    State = x.value
    Do
        If x.value <> State Then
            State = x.value
            If State = 0 Then
                Print "CAPS off"
            Else
                Print "CAPS on"
            End If
        End If
        DoEvents
    Loop

Needless to say, you'd be better off getting VB4, but it CAN be done.

Regards,
Rod



Tue, 18 Aug 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Losing part/all of sound recording using MCI32.OCX under VB 4.0

2. Problems with binary data using MsComm32.ocx of VB 5.0

3. Losing part/all of sound recording using MCI32.OCX under VB 4.0

4. Problem using MSMAPI32.OCX , Win95 , VB 4.0

5. using graph32.ocx in VB appl

6. Losing part/all of sound recording using MCI32.OCX under VB 4.0

7. Sending Variants using Winsock OCX in VB 5???

8. Losing part/all of sound recording using MCI32.OCX under VB 4.0

9. Help Reqd on using MSCOMM32.OCX in vb.net for communication with serial ports and the device connected to them

10. How can I get total number of Tables in RPT file, using Crystal32.ocx through VB-6 ?

11. using VB.NET control in VB.6 as .ocx

12. OCX OCX OCX OCX OCX OCX

 

 
Powered by phpBB® Forum Software