Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working with rewriting one of the vb6 application form to wpf window, when i launch the application and open the newly created wpf window then if i open any other application my wpf window is getting minimized. if i click on the vb6 application on taskbar which was opened earlier my wpf window is not showing on top of application.

can one help me how to set my vb6 application or form as owner to my wpf window.

What I have tried:

I tried with the below code.

public InventoryMasterSearchViewLauncher(Window owner)
        {
            //_owner = owner;
            var window = new InventoryMasterSearchForm();
            WindowInteropHelper helper = new WindowInteropHelper(window);
            helper.Owner = this.Handle;
           
        }
Posted
Updated 19-Nov-19 20:36pm

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900