48 references to FromCurrent
System.Windows.Forms (48)
System\Windows\Forms\Application.ComponentManager.cs (1)
243
ThreadContext.
FromCurrent
().DisposeThreadWindows();
System\Windows\Forms\Application.cs (29)
240
=> ThreadContext.
FromCurrent
().CustomThreadExceptionHandlerAttached;
435
=> ThreadContext.
FromCurrent
().GetMessageLoop();
547
=> ThreadContext.
FromCurrent
().RegisterMessageLoop(callback);
595
=> ThreadContext.
FromCurrent
().RegisterMessageLoop(null);
766
=> ThreadContext.
FromCurrent
().AddMessageFilter(value);
776
bool processed = ThreadContext.
FromCurrent
().ProcessFilters(ref msg, out bool modified);
796
ThreadContext current = ThreadContext.
FromCurrent
();
805
ThreadContext current = ThreadContext.
FromCurrent
();
821
ThreadContext current = ThreadContext.
FromCurrent
();
829
ThreadContext current = ThreadContext.
FromCurrent
();
845
ThreadContext current = ThreadContext.
FromCurrent
();
853
ThreadContext current = ThreadContext.
FromCurrent
();
868
ThreadContext current = ThreadContext.
FromCurrent
();
876
ThreadContext current = ThreadContext.
FromCurrent
();
900
=> ThreadContext.
FromCurrent
().BeginModalMessageLoop(null);
906
=> ThreadContext.
FromCurrent
().RunMessageLoop(msoloop.DoEvents, null);
909
=> ThreadContext.
FromCurrent
().RunMessageLoop(msoloop.DoEventsModal, null);
950
=> ThreadContext.
FromCurrent
().EndModalMessageLoop(null);
1056
ThreadContext context = ThreadContext.
FromCurrent
();
1076
ThreadContext.
FromCurrent
().FormActivated(activated);
1213
ThreadContext threadContext = ThreadContext.
FromCurrent
();
1224
=> ThreadContext.
FromCurrent
().OleRequired();
1230
=> ThreadContext.
FromCurrent
().OnThreadException(t);
1247
=> ThreadContext.
FromCurrent
()._idleHandler?.Invoke(Thread.CurrentThread, e);
1253
=> ThreadContext.
FromCurrent
().RemoveMessageFilter(value);
1302
=> ThreadContext.
FromCurrent
().RunMessageLoop(msoloop.Main, new ApplicationContext());
1309
=> ThreadContext.
FromCurrent
().RunMessageLoop(msoloop.Main, new ApplicationContext(mainForm));
1316
=> ThreadContext.
FromCurrent
().RunMessageLoop(msoloop.Main, context);
1324
=> ThreadContext.
FromCurrent
().RunMessageLoop(msoloop.ModalForm, new ModalApplicationContext(form));
System\Windows\Forms\Application.LightThreadContext.cs (1)
95
FromCurrent
().DisposeThreadWindows();
System\Windows\Forms\Application.ParkingWindow.cs (1)
77
if (context is null || !ReferenceEquals(context, ThreadContext.
FromCurrent
()))
System\Windows\Forms\Application.ThreadWindows.cs (1)
62
Control? activatingControl = ThreadContext.
FromCurrent
().ActivatingControl;
System\Windows\Forms\Control.cs (1)
913
Application.ThreadContext.
FromCurrent
().ActivatingControl = value ? this : null;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (4)
1930
Application.ThreadContext.
FromCurrent
().RemoveMessageFilter(_restoreFocusFilter);
3298
Application.ThreadContext.
FromCurrent
().RemoveMessageFilter(RestoreFocusFilter);
3975
Application.ThreadContext.
FromCurrent
().RemoveMessageFilter(RestoreFocusFilter);
4630
Application.ThreadContext.
FromCurrent
().AddMessageFilter(RestoreFocusFilter);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.RestoreFocusMessageFilter.cs (1)
58
Application.ThreadContext.
FromCurrent
().RemoveMessageFilter(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (2)
364
Application.ThreadContext.
FromCurrent
().RemoveMessageFilter(ParentInternal.RestoreFocusFilter);
377
Application.ThreadContext.
FromCurrent
().RemoveMessageFilter(ParentInternal.RestoreFocusFilter);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (5)
146
Application.ThreadContext.
FromCurrent
().AddMessageFilter(this);
147
Application.ThreadContext.
FromCurrent
().TrackInput(true);
149
if (!Application.ThreadContext.
FromCurrent
().GetMessageLoop(true))
196
Application.ThreadContext.
FromCurrent
().RemoveMessageFilter(this);
197
Application.ThreadContext.
FromCurrent
().TrackInput(false);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.HostedWindowsFormsMessageHook.cs (1)
91
if (Application.ThreadContext.
FromCurrent
().PreTranslateMessage(ref *msg))
System\Windows\Forms\WindowsFormsSynchronizationContext.cs (1)
30
_controlToSendTo = Application.ThreadContext.
FromCurrent
().MarshallingControl;