Visual Basic is very old programming language but still sometimes we need it like a good old friend.
I will demonstrate how to Determine and Changing the Class ID in Visual Basic 6
Determining the VB6 OCX ClassID
To determine the OCX `ClassID` you have to search in the in `Registry` by control name.
For e.g. if you have control name ABC.ocx if you search it by name you will get the `ClassID`.
Note: You can find the Windows Registry by typing the command ‘regedit’ in Run.
Changing a VB6 OCX ClassID
If you have made some changes in the `ActiveX` and want new `ClassID` you have to set the `Version`
`Compatibility: No Compatibility`,
in *Properties -> Component ->Version Compatibility