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

Old, inacurate sample #10802

Open
gjuwindev opened this issue Jan 2, 2025 · 0 comments
Open

Old, inacurate sample #10802

gjuwindev opened this issue Jan 2, 2025 · 0 comments
Labels
area-WinForms Issues or PRs that relate to WinForms. untriaged New issue has not been triaged by the area owner

Comments

@gjuwindev
Copy link

Type of issue

Code doesn't work

Description

The sample is good, I guess, for .NET framework, but it does not work as it is given here for .NET 9 (namely, there are no, it seems, classes named ContextMenu and MenuItem in Windows Forms for .NET 9; also, there is no Index property in the ToolStripMenuItem (but MergeIndex) and finally, "object Sender" should be "object? sender", because of nullability checking).

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.notifyicon.icon?view=windowsdesktop-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Windows.Forms/NotifyIcon.xml

Document Version Independent Id

def40a46-8e25-83f2-5f48-a6037c4f174a

Article author

@dotnet-bot

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 2, 2025
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-WinForms Issues or PRs that relate to WinForms. label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WinForms Issues or PRs that relate to WinForms. untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant