Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3215808
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:13:15+00:00 2026-05-17T15:13:15+00:00

I have a WPF application that has a variable x which is an instance

  • 0

I have a WPF application that has a variable “x” which is an instance of a class from a custom C# assembly called “MyClasses.dll”. This variable “x” has a method “LaunchForm” that launches a Windows Form “Form1” from another assembly “MyForms.dll”. The form is launched as a dialog and shown in the screen but the current Windows XP / Win7 theme/skin is not applied to it. If this “Form1” is launched from a Windows Form (not WPF window) it is shown correctly though. Any ideas why this is happening? Any hints to solve this issue?

Cheers all!
Edgar

I just looked at the code again and I’m not using reflection on this way of launching the winform. The code as requested is in WPF:

MyInterface x=new MyClass1();
x.LaunchForm();

The code in MyClasses.dll:

public class MyClass1() : MyInterface
{
public MyClass1()
{}
public void LaunchForm()
{
Form1 Form1Dialog=new Form1();
Form1Dialog.ShowDialog();
}
}

This, as mentioned, launches the winform from WPF but no windows theme is applied to it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:13:16+00:00Added an answer on May 17, 2026 at 3:13 pm

    Probably you don’t have the proper manifest to tell Windows you are compatible with the new theme (WPF doesn’t need it).

    I wrote about it on my blog at http://www.nbdtech.com/Blog/archive/2008/06/16/The-Application-Manifest-Needed-for-XP-and-Vista-Style-File.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a solution that has three projects: WPF Application Class Library NUnit Testing
I have a WPF MVVM application that has a model and services assembly. I'm
I have a View Model class in a WPF application that has some very
We have a WPF Application that runs from both desktop and as a XBAP
We have a WPF application that has a print preview dialog. When we create
In my application i have a WPF Window that has a DataGrid in it.
I have a WPF application which has a DirectX component within it. This component
I have a C# WPF .NET 4 application that has an icon in the
I have a C#/WPF application with a tabbed interface that has been behaving strangely.
I have a WPF application that has a ListView with a GridView in it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.