Link to home
Start Free TrialLog in
Avatar of HankSloka
HankSloka

asked on

.Net COM button style

Hi

I'm in the process of writting a C# Com GUI for use in an old C++ V6 application.

The C# COM object creates a WinForm and shows it in a predefined place (making it look as if it's actually a C++ dialog)

Everything is working fine except that when I open the form, the buttons are no longer the nice C# .Net style wiht shading and rounded edges, but have changed to the old boring xp style square and gray background.

Same goes for the combo box if I choose the DropDownList style, so I assume the same goes for all the controls.

Is there some way to force the COM object to use the .Net style controls?

Cheers
Hank
ASKER CERTIFIED SOLUTION
Avatar of Zhaolai
Zhaolai
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HankSloka
HankSloka

ASKER

Awesome!

That did the trick!!

Thanks, I spent ages trawling the internet.  Didn't want to come here and ask without doing a bit of research first.

Thanks
Hank