dotnet / dotnet/winforms

F1 (help) not working on control's properties

Open
#9,151 2 comments 0 reactions 0 assignees View on GitHub
area-VSDesigner
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### Environment

Microsoft Visual Studio Community 2022
Version 17.6.0
VisualStudio.17.Release/17.6.0+33712.159
Microsoft .NET Framework
Version 4.8.09032

### .NET version

6.0, 7.0

### Did this work in a previous version of Visual Studio and/or previous .NET release?

Yes in .Net framework designer

### Issue description

When you press F1 on any property in designer's propertygrid you must be redirected to appropriate msdn page. But currently designer trying to use proxy object for this case. For example `Form.Text` property:
Expexted
`https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.form.text?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(System.Windows.Forms.Form.Text)%3Bk(System.Windows.Forms.Form)%3Bk(VS.Properties)%26rd%3Dtrue&view=windowsdesktop-7.0`

Current
```https://msdn.microsoft.com/query/dev16.query?appId=Dev16IDEF1&l=EN-US&k=k(Microsoft.DotNet.DesignTools.Client.Proxies.ControlProxy`1 .... very very long string``` and as result:

> The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

This is also a problem for custom control designers. I've asked same question [here](https://github.com/microsoft/winforms-designer-extensibility/issues/4#issuecomment-1509875779), but never got answered :(

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.