10-10-2006 04:55 AM
10-11-2006 06:26 AM
Hi,
unfortunately this is something that has already been brought to the attention of the developers.
The visual styles work for the .net controls, but for dialogs and activeX controls that are external to .net you still need the manifest file.
It is something that is being considered for the future, although when the next release might be, or if it will include this feature, then unfortunately I cannot say.
Thanks
Sacha Emery
National Instruments (UK)
10-11-2006 07:09 AM
Ok,
Finally found a way to get this working. First you need to add the class from a related COM/XP styling Microsoft KB article (http://support.microsoft.com/kb/830033) into your .NET forms project. The class EnableThemingInScope will selectively apply XP styling. In my Form Main method I have removed the call to EnableVisualStyles , and instead invoke the EnableThemingInScope constructor around the call to Application.Run. Now I can have XP styling for my forms app and retain the default look and feel of the TestStand UI controls. Hope this helps someone else.
static void Main(){
// doesn't work with TestStand 3.5 UI controls -- Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.DoEvents(); using (new EnableThemingInScope(true))
{
Application.Run(new MainForm());
}
}