
Windows XP Style Manifest doesn't work on ActiveX Control Projects
Hi All!
I'm testing some of my VB projects applying the XP Style Mainfest, so that
my application will use the new XP style buttons, scroll bars, progress bars
and so on. What I did was just put the manifest file into the project
directory and done.
I've tried this method and it works well on "Standard EXE" projects.
However, when I tried this method to an "ActiveX OCX" project, it doesn't
work.
This is what I've tried:
- First I created a ActiveX Control Project with one ActiveX Control in it.
I named that control "MyTestControl" and the project "MyTestProject".
- Next, I put a VB.CommandButton on "MyTestControl".
- Then I save the project and complie it into "MyTestProject.ocx".
- Then I put the Manifest file in my control project directory, and renamed
"MyTestProject.ocx.manifest".
After creating the control, I created a Standard EXE project to test the
control. Steps are as follows...
- I create a New Standard EXE project.
- Then, I reference the control via Componets dialog.
- Next, I create an instance of the "MyTestControl" control on the form.
And the VB.CommandButton in the MyTestProject.MyTestControl doesn't appear
as Windows XP style. So I've tried this:
- Complie the test Standard EXE to Test.exe
- Run the Test.exe
And the VB.CommandButton in the MyTestProject.MyTestControl STILL doesn't
appear as Windows XP style.
So my conclusion to the manifest files is that, they only work against the
Standard EXE projects and NOT to the other projects such as OCXs and DLLs.
Am I right? OR did I overlook something? How to set the Windows XP Style to
OCX projects?
Cheers,
Maxi