-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Enhance WinForms Application static class to get current application context #11971
Labels
api-suggestion
(1) Early API idea and discussion, it is NOT ready for implementation
🚧 work in progress
Work that is current in progress
Comments
Workaround:
|
To be safer it would probably be better to just expose the |
yes, it works for me as I only desire MainForm on current thread. |
Hi @JeremyKuhne, would you please help to have a review on pr #11972 ? |
I’ll look as soon as I am able. I’ll also need to take this through API review. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api-suggestion
(1) Early API idea and discussion, it is NOT ready for implementation
🚧 work in progress
Work that is current in progress
Background and motivation
I have a complex winform application and made multiple forms run message loops on independent threads, I registered ThreadException on each form's thread, and hope to get current form thread's application context in ThreadException event callback, to show a dialog with current application context's MainForm as dialog's owner (ensure alert shows in front of current thread's main form).
API Proposal
API Usage
Alternative Designs
No response
Risks
Add a new method, no clearly risk.
Will this feature affect UI controls?
No;
No;
No;
The text was updated successfully, but these errors were encountered: