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 wpf application that has some shapes on a canvas I want
We have a WPF Application that has a two flavors with a consistent UI
We have a WPF application that has a print preview dialog. When we create
I have a WPF application that runs fine under XP as an administrator. When
I have written a WPF application that I want to port to Silverlight 2.
I have a simple message box in a WPF application that is launched as
Please help! Background info I have a WPF application which accesses a SQL Server
I have a simple WPF application which I am trying to start. I am
I have a very simple WPF application in which I am using data binding
I have a WPF application that builds fine, I can even publish it (localhost)

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.