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