Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'StatusBar' class could not be found in System.Windows.Forms #2852

Closed
John-Qiao opened this issue Feb 13, 2020 · 2 comments
Closed

'StatusBar' class could not be found in System.Windows.Forms #2852

John-Qiao opened this issue Feb 13, 2020 · 2 comments

Comments

@John-Qiao
Copy link
Member

@John-Qiao John-Qiao commented Feb 13, 2020

  • .NET Core Version: 5.0.100-preview.1.20112.13

  • Have you experienced this same bug with .NET Framework?: No

Problem description:
Cannot create the System.Windows.Forms.StatusBar class object in .NET Core 5.0 project.
StatusBar-5 0

More info:

  1. This issue cannot repro in the latest NET Core 3.1 project.
  2. The System.Windows.Forms.StatusBarPanel class object cannot be created too.

Expected behavior:
Can create the System.Windows.Forms.StatusBar class object in .NET Core 5.0 project successfully.
StatusBar-3 1

Minimal repro:

  1. Create a Winforms Core application.
  2. Open Form1.cs file and add the following code in Form1 class.
    StatusBar ss = new StatusBar();
  3. Build the application.
@John-Qiao

This comment has been minimized.

Copy link
Member Author

@John-Qiao John-Qiao commented Feb 13, 2020

That's by design and described in there: dotnet/docs#17008

@John-Qiao John-Qiao closed this Feb 13, 2020
@RussKie

This comment has been minimized.

Copy link
Member

@RussKie RussKie commented Feb 13, 2020

Relates to #2798

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.