dotnet / dotnet/dotnet-api-docs
Old, inacurate sample
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
### 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
Contributor guide
Assessment
This issue has not been assessed yet.