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 3940426
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:25:02+00:00 2026-05-20T00:25:02+00:00

Firstly, I have a project with a Windows Form that references another project with

  • 0

Firstly, I have a project with a Windows Form that references another project with WPF forms. The Windows Form has an ElementHost which child is one of the WPF documents in the other project.

Now, on this WPF document I want to have a Button that upon a click can open another WPF form. Either as a new standalone WPF form, as a modal or whatever.

I cannot, on the button click event, say

WPFform2 WPFform2=new WPFform2();
WPFform2.Show();

… as many other threads on the net suggest, since the Show() method does not exist.

My solution does not allow some sort of call that changes the main Form´s ElementHost, so that is not an option for me.

All my WPF forms derives from UserControl:

public partial class WPFform1: UserControl
  • 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-20T00:25:03+00:00Added an answer on May 20, 2026 at 12:25 am

    The form must be derived from Window to have the Show() method.

    Just create a new window that contains only the form you want to show and call Show on it. Or change the control’s base class to Window (you will have to rewrite it both in XAML and in the code behind), nothing should really change, Window supports most of UserControl‘s features.

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

Sidebar

Related Questions

I have a windows service written in C# that creates a truck load of
Firstly, let me set out what I'd like to do. Assume I have three
Firstly, Real World Haskell , which I am reading, says to never use foldl
I have a project idea, but unsure if using Python would be a good
Firstly let me clarify (if the title wasn't clear enough): I'm discussing System.Windows.Controls.DataGrid from
Firstly, how can I have jQuery continuously check the time, and add an id
Firstly, I have migrated my CVS repository into SVN repository. I checked out this
Firstly, I'm a newbie to C# and SharePoint, (less than a month's experience) so
So firstly here's my query: ( NOTE:I know SELECT * is bad practice I
I wish to order a table: Firstly by Field1=3 Then by Field2 DESC I

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.