Determine and Changing the Class ID in Visual Basic 6

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

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s