By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,424 Members | 1,351 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,424 IT Pros & Developers. It's quick & easy.

How to XP Visual style for controls when using reflection

P: n/a
Hi All,
I call my C# application from old C++ application using reflection.
Just find type and call static method using this type.

Unfortunately I can't manage to have XP style for my controls

My call looks like this:
public static void StartFromOldApplication()
{
System.Windows.Forms.Application.EnableVisualStyle s();
m_facade = new MainForm();
System.Windows.Forms.Application.Run(m_facade);
}
I have manifest file in my CS_application.exe

When I run CS_application.exe independently from command line I have
XP Visual Style for controls.
Please help what should I do in case of using reflection?

Thanks in advance,
Roman
Nov 15 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.