dotnet / dotnet/dotnet-api-docs

Add note to avoid using this dialog

Aperta
#7,900 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area-WinForms Pri3 untriaged
Lingua principale
C#
Stelle
949
Fork
1.7k
Merge medio
2g 19h
PR unite (30g)
52

Descrizione

https://github.com/dotnet/dotnet-api-docs/blob/2c1f01baf150a26d011ca4ef92aaf4239266a7e9/xml/System.Windows.Forms/FolderBrowserDialog.xml#L48

The [documentation of the native version](https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shbrowseforfoldera) recommends to use IFileDialog instead.

It should also be mentioned that [this dialog has a bug](https://stackoverflow.com/questions/6647761/problem-with-folderbrowserdialog) that still exists in Windows 11: When the user creates a new folder within the dialog and directly clicks the ok button, the folder is actually renamed but the dialog returns the name before the renaming.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Open xml/System.Windows.Forms/FolderBrowserDialog.xml at the referenced line and review the linked native API guidance and bug report. Update the API documentation to cover the recommendation to use IFileDialog and the folder-renaming issue, then verify that the resulting note accurately reflects the cited behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
50/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.