title: Can I load more than one COMCTL32.dll into a process?
body: <p>I'm developing an ActiveX control which (these days) is used mostly in WinForms apps.</p>
  
  <p>The ActiveX control has a 'property page' dialog, which can be shown programmatically using the ShowPropertyPages method on the AxHost class. This is the custom UI that can be brought up in Visual Studio to edit a control's properties.</p>
  
  <p>This property page dialog contains a ListBox control which uses an ImageList to display icons next to list items. These icons are 32-bit alpha-blended bitmaps. In order for these to display properly, version <strong>6.0</strong> or above of COMCTL32.DLL must be used. </p>
  
  <p>Unfortunately when I run my WinForms app, it loads and uses COMCTL32.DLL version <strong>5.xxx</strong>. As a result, when the property page dialog is displayed the icons look bad (the semi-transparent areas are drawn in solid black).</p>
  
  <p>My question is: is there any way I can make sure to use COMCTL32.dll version 6.0+ from within the ActiveX control's property page UI, regardless of what the process is using? Or can I force the host process to use version 6.0? (I think not, because I am thinking the host process might have already loaded COMCTL32.DLL into memory before any of the code in the ActiveX control.</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/ms997646.aspx#xptheming_topic13" rel="nofollow noreferrer">This webpage</a> covers some scenarios for using COMCTL32 6.0, but not the situation I am in. </p>