VB.NET: how to make the form in WinXP style

andy7789
andy7789 used Ask the Experts™
on
Hi X-perts,

I am building a windows form in VB.NET and run it as COM DLL from VBA excel.

The form looks visually great in Visual studio Designer (all Win XP styles, rounded corners etc etc). But when I build it and run, it shows a standard system style like old VBA forms

How can I fix this?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Try adding a Manifest file to your project folder and recompile:
MyProject.exe
MyProject.exe.Manifest
http://www.codeproject.com/KB/cpp/XPStyleB.aspx 


Author

Commented:
I don't have .exe file.

It is a COM DLL

The question can be rephrased: how to make a COM DLL for VBA application including a windows form with XP style?

When you select a Class project in VS, it doesn't allow selecting XP Styles for assembly.

So, how can I do this?
Jorge PaulinoIT Pro/Developer
Top Expert 2008

Commented:
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
guys, sorry for a similar thread. I was not sure what the problem is - either because of a missing control references in the VBA application or .NET problems or windows settings. That's why I tried to cover all angles
Jorge PaulinoIT Pro/Developer
Top Expert 2008
Commented:
Is it working now ?

Author

Commented:
yes, thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial