Thanks semke , I followed what you provided and it worked . An essential step to add to the previous ones is that I changed the instances for all class modules to "GlobalMultiuse" . I will summarize the steps here
Steps for converting STDexe to Activex control project :
1- Open the STDexe project
2- Remove all forms
3- Change the project type to Activex control project
4- A message appears " the project (start mode) property has changed "
5- Set all user controls to public
6- Set all class modules instances to GlobalMultiuse .
7- Remove the line which loads the main form from Sub_main()
8-Remove this code from ComCtlsBase module, and put it in the ISubclass class module
These steps are open for any modification and addition by anyone who finds them incomplete or missing some points to be added or mentionedCode:#If False Then Private OLEDropModeNone, OLEDropModeManual Private CCAppearanceFlat, CCAppearance3D Private CCBorderStyleNone, CCBorderStyleSingle, CCBorderStyleThin, CCBorderStyleSunken, CCBorderStyleRaised Private CCBackStyleTransparent, CCBackStyleOpaque Private CCLeftRightAlignmentLeft, CCLeftRightAlignmentRight Private CCVerticalAlignmentTop, CCVerticalAlignmentCenter, CCVerticalAlignmentBottom Private CCIMEModeNoControl, CCIMEModeOn, CCIMEModeOff, CCIMEModeDisable, CCIMEModeHiragana, CCIMEModeKatakana, CCIMEModeKatakanaHalf, CCIMEModeAlphaFull, CCIMEModeAlpha, CCIMEModeHangulFull, CCIMEModeHangul Private CCRightToLeftModeNoControl, CCRightToLeftModeVBAME, CCRightToLeftModeSystemLocale, CCRightToLeftModeUserLocale, CCRightToLeftModeOSLanguage #End If Public Enum OLEDropModeConstants OLEDropModeNone = vbOLEDropNone OLEDropModeManual = vbOLEDropManual End Enum Public Enum CCAppearanceConstants CCAppearanceFlat = 0 CCAppearance3D = 1 End Enum Public Enum CCBorderStyleConstants CCBorderStyleNone = 0 CCBorderStyleSingle = 1 CCBorderStyleThin = 2 CCBorderStyleSunken = 3 CCBorderStyleRaised = 4 End Enum Public Enum CCBackStyleConstants CCBackStyleTransparent = 0 CCBackStyleOpaque = 1 End Enum Public Enum CCLeftRightAlignmentConstants CCLeftRightAlignmentLeft = 0 CCLeftRightAlignmentRight = 1 End Enum Public Enum CCVerticalAlignmentConstants CCVerticalAlignmentTop = 0 CCVerticalAlignmentCenter = 1 CCVerticalAlignmentBottom = 2 End Enum Public Enum CCIMEModeConstants CCIMEModeNoControl = 0 CCIMEModeOn = 1 CCIMEModeOff = 2 CCIMEModeDisable = 3 CCIMEModeHiragana = 4 CCIMEModeKatakana = 5 CCIMEModeKatakanaHalf = 6 CCIMEModeAlphaFull = 7 CCIMEModeAlpha = 8 CCIMEModeHangulFull = 9 CCIMEModeHangul = 10 End Enum Public Enum CCRightToLeftModeConstants CCRightToLeftModeNoControl = 0 CCRightToLeftModeVBAME = 1 CCRightToLeftModeSystemLocale = 2 CCRightToLeftModeUserLocale = 3 CCRightToLeftModeOSLanguage = 4 End Enum
The previous steps are tested and the project works fine and I have not yet applied Krool`s steps . However , I am going to go on this advice and remove the exception until it is suitable time for krool to explain the reason for this step and the case which will raise a problem if these exceptions were not removed . Thanks all for help




Reply With Quote