tags:

views:

40

answers:

1

I have a winform 'form1' and a wpf usercontrol 'wpfuser1'

i set 'wpf user1' as a splash screen with progress bar

in form1 i would like to call that splash screen to indicate the form is loading.

how can i do that in form1?

public Form1() {

        this.Hide();


        UserControl1 wpfuser1 = new UserControl1();

          //wpfuser1.show() ?????

        Thread.Sleep(5000);

        this.Visible = true;


        InitializeComponent();

}

+1  A: 

Use an ElementHost control. See this link for help

http://msdn.microsoft.com/en-us/library/system.windows.forms.integration.elementhost.aspx

Mamta Dalal