VsPackage - how to use winform control instead of Default WPF control in VS2019?

host em 1 Reputation point
2022-12-16T15:36:21.207+00:00

use thisi code in VS2010 is valid,but in VS2019 is invalid, why?

 public MyToolWindow() :  base(null)  
        {  
            this.Caption = Resources.ToolWindowTitle;  
            this.BitmapResourceID = 301;  
            this.BitmapIndex = 1;  
            control = new MyControl();  
        }  
   
        override public IWin32Window Window  
        {  
            get  
            {  
                return (IWin32Window)control;  
            }  
        }  
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,471 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.