-
Notifications
You must be signed in to change notification settings - Fork 961
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
System.NullReferenceException: 'Object reference not set to an instance of an object.' occurs when click the help button in TreeView smarttag in the DemoConsole application #11640
Comments
No response after clicking the help button in controls smarttag(except TreeView control) in the DemoConsole application. It should open the help website. |
Looks like there was a typo when setting |
@lonitra The expected result is from design time form designer. eg: add a treeview control to from designer -> open smarttag -> Edit Nodes... -> click help button. |
Maybe it's a correct behavior. In .NET 8.0 and .NET Framework, no response after clicking help button use propertygrid control binding the TreeView. framework.mp4 |
assigning to @LeafShi1 to do the fix. |
Verified the issue on the latest DemoConsole test app of Winforms repo from main branch, it was fixed: no exception occurs when click the help button in TreeView smarttag in the DemoConsole application now. 11640-testresult.mp4And we will test it with the TreeView control in a new WinForms project once the PR: 11656 updates sync to latest .NET 9.0 P7 SDK build. |
Verified this issue in the latest .NET 9.0 Preview7 SDK build: 9.0.100-preview.7.24371.4, it was fixed: no exception occurs when click the help button in TreeNode Editor dialog. 11640-testresult2.mp4 |
Verified the issue with .NET 9.0.100-preview7.24402.8 test pass build that the issue has been fixed, which have the same results as above. |
.NET version
.Net 9.0: Main branch of Winforms repo
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, it has different behavior. In .Net 8.0 from Release/8.0 branch of Winforms repo, no response after clicking the help button in TreeView smarttag in the DemoConsole application.
More info:
![image](./?url=aHR0cHM6Ly9wcml2YXRlLXVzZXItaW1hZ2VzLmdpdGh1YnVzZXJjb250ZW50LmNvbS85NDQxODk4NS8zNDY5MDQ5NDQtZGY0ZWQzMmMtZDM5ZC00MWM1LTg5YzAtY2QyN2VhMjdlZDJiLnBuZz9qd3Q9ZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnBjM01pT2lKbmFYUm9kV0l1WTI5dElpd2lZWFZrSWpvaWNtRjNMbWRwZEdoMVluVnpaWEpqYjI1MFpXNTBMbU52YlNJc0ltdGxlU0k2SW10bGVUVWlMQ0psZUhBaU9qRTNNak01T1RRMU5qSXNJbTVpWmlJNk1UY3lNems1TkRJMk1pd2ljR0YwYUNJNklpODVORFF4T0RrNE5TOHpORFk1TURRNU5EUXRaR1kwWldRek1tTXRaRE01WkMwME1XTTFMVGc1WXpBdFkyUXlOMlZoTWpkbFpESmlMbkJ1Wno5WUxVRnRlaTFCYkdkdmNtbDBhRzA5UVZkVE5DMUlUVUZETFZOSVFUSTFOaVpZTFVGdGVpMURjbVZrWlc1MGFXRnNQVUZMU1VGV1EwOUVXVXhUUVRVelVGRkxORnBCSlRKR01qQXlOREE0TVRnbE1rWjFjeTFsWVhOMExURWxNa1p6TXlVeVJtRjNjelJmY21WeGRXVnpkQ1pZTFVGdGVpMUVZWFJsUFRJd01qUXdPREU0VkRFMU1UYzBNbG9tV0MxQmJYb3RSWGh3YVhKbGN6MHpNREFtV0MxQmJYb3RVMmxuYm1GMGRYSmxQV014WW1abFpUTTFaRFppTVRjMllXWTNOVEV4TkRBNU16UTBPRFppTm1NeE5EVmpORFptTXpobE1qY3pPRGhqWkRCbE1XTXhaakF4TXpJMk0yVmxZekFtV0MxQmJYb3RVMmxuYm1Wa1NHVmhaR1Z5Y3oxb2IzTjBKbUZqZEc5eVgybGtQVEFtYTJWNVgybGtQVEFtY21Wd2IxOXBaRDB3SW4wLkFHQ2tEMzdjdThEb1FUUzNpRlRQblpNam5FSmZKam5jUnhzT2d6WG5PQXc=&__proxy_form=0)
This issue also repro in propertygrid control binding the TreeView.
StackTrace.txt
Issue description
Actual result in DemoConsole test app:
System.NullReferenceException: 'Object reference not set to an instance of an object.' occurs when click the help button in TreeView smarttag in the DemoConsole application.
Call Stack:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=System.Windows.Forms.Design
StackTrace:
at System.Windows.Forms.Design.TreeNodeCollectionEditor.TreeNodeCollectionForm.TreeNodeCollectionEditor_HelpButtonClicked(Object sender, CancelEventArgs e) in C:\Users\v-melonwang\Desktop\New folder\winforms\src\System.Windows.Forms.Design\src\System\Windows\Forms\Design\TreeNodeCollectionEditor.cs:line 705
actual.mp4
Expected result:
The TreeNode Editor MSDN should open in broswer when click he help button in TreeView smarttag.
expected.mp4
Steps to reproduce
Test sample: DemoConsole in Winforms repo.
The text was updated successfully, but these errors were encountered: