225 references to Application
System.Messaging (1)
System\Messaging\Design\QueuePathDialog.cs (1)
445
Application
.DoEvents();
System.Web.Extensions (3)
ClientServices\ConnectivityStatus.cs (2)
37
string path = Path.Combine(System.Windows.Forms.
Application
.UserAppDataPath, "AppIsOffline");
46
string path = Path.Combine(System.Windows.Forms.
Application
.UserAppDataPath, "AppIsOffline");
ClientServices\Providers\SqlHelper.cs (1)
299
return Path.Combine(
Application
.UserAppDataPath, GetPartialDBFileName(username, extension));
System.Windows.Forms (201)
misc\DpiHelper.cs (1)
182
(
Application
.RenderWithVisualStyles))
winforms\Managed\System\WinForms\Application.cs (16)
780
SafeNativeMethods.EnumThreadWindowsCallback callback = new SafeNativeMethods.EnumThreadWindowsCallback(
Application
.SendThemeChanged);
816
new NativeMethods.EnumChildrenCallback(
Application
.SendThemeChangedRecursive),
1049
assemblyLoc = typeof(
Application
).Assembly.Location;
1342
/// <para>Raises the <see cref='System.Windows.Forms.
Application
.ThreadException'/> event.</para>
1441
UInt32 hostType = (UInt32)
Application
.ClickOnceUtility.GetHostTypeFromMetaData(appFullName);
1464
currentStartInfo.FileName =
Application
.ExecutablePath;
2122
Application
.ThreadContext.FromCurrent().DisposeThreadWindows();
2441
Application
.OleRequired();
2689
marshalingControl = new System.Windows.Forms.
Application
.MarshalingControl();
2804
Application
.RaiseThreadExit();
2824
Application
.RaiseExit();
3271
Application
.ExitInternal();
4150
Application
.ThreadContext ctx =
Application
.ThreadContext.FromId(id);
4155
!Object.ReferenceEquals(ctx,
Application
.ThreadContext.FromCurrent())) {
4289
Control activatingControl =
Application
.ThreadContext.FromCurrent().ActivatingControl;
winforms\Managed\System\WinForms\AxHost.cs (8)
123
private readonly int REGMSG_MSG = SafeNativeMethods.RegisterWindowMessage(
Application
.WindowMessagesVersion + "_subclassCheck");
285
if (
Application
.OleRequired() != ApartmentState.STA) {
2831
Application
.Idle += new EventHandler(this.OnIdle);
2835
Application
.Idle -= new EventHandler(this.OnIdle);
3381
SafeNativeMethods.OleCreatePropertyFrame(new HandleRef(this, handle), 0, 0, name, 1, ref o, uuids.cElems, new HandleRef(null, uuids.pElems),
Application
.CurrentCulture.LCID, 0, IntPtr.Zero);
3501
Application
.ParkHandle(new HandleRef(ipo, hwnd));
3641
if (
Application
.OleRequired() != System.Threading.ApartmentState.STA) {
4445
qaContainer.lcid =
Application
.CurrentCulture.LCID;
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (3)
86
return SystemInformation.HighContrast &&
Application
.RenderWithVisualStyles &&
661
if (
Application
.RenderWithVisualStyles) {
1408
else if (!
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (5)
138
if (
Application
.RenderWithVisualStyles) {
150
if (
Application
.RenderWithVisualStyles) {
182
if (
Application
.RenderWithVisualStyles) {
202
if (!
Application
.RenderWithVisualStyles) {
234
layout.everettButtonCompat = !
Application
.RenderWithVisualStyles;
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (2)
221
if (
Application
.RenderWithVisualStyles) {
229
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (3)
41
if (!
Application
.RenderWithVisualStyles) {
109
layout.everettButtonCompat = !
Application
.RenderWithVisualStyles;
112
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (2)
181
if (!
Application
.RenderWithVisualStyles) {
187
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonStandardAdapter.cs (2)
69
layout.everettButtonCompat = !
Application
.RenderWithVisualStyles;
72
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\ButtonRenderer.cs (1)
53
return (!renderMatchingApplicationState ||
Application
.RenderWithVisualStyles);
winforms\Managed\System\WinForms\CheckBoxRenderer.cs (1)
54
return (!renderMatchingApplicationState ||
Application
.RenderWithVisualStyles);
winforms\Managed\System\WinForms\CheckedListBox.cs (3)
680
if (
Application
.RenderWithVisualStyles) {
710
if (
Application
.RenderWithVisualStyles) {
862
else if (!
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\Clipboard.cs (3)
111
if (
Application
.OleRequired() != System.Threading.ApartmentState.STA) {
218
if (
Application
.OleRequired() != System.Threading.ApartmentState.STA) {
228
if (
Application
.MessageLoop) {
winforms\Managed\System\WinForms\ComboBox.cs (5)
201
if (
Application
.OleRequired() != System.Threading.ApartmentState.STA) {
249
if (
Application
.OleRequired() != System.Threading.ApartmentState.STA) {
870
if ((!ContainsFocus || !
Application
.RenderWithVisualStyles) && this.FlatStyle == FlatStyle.Popup) {
3688
if (!
Application
.RenderWithVisualStyles && GetStyle(ControlStyles.UserPaint) == false && this.DropDownStyle == ComboBoxStyle.DropDownList && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) {
4020
CompareInfo compInfo = (
Application
.CurrentCulture).CompareInfo;
winforms\Managed\System\WinForms\CommonDialog.cs (4)
219
Application
.OnThreadException(e);
306
if (
Application
.UseVisualStyles) {
310
Application
.BeginModalMessageLoop();
315
Application
.EndModalMessageLoop();
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (1)
115
_remoteObjectName = string.Format(CultureInfo.CurrentCulture, "ComponentManagerBroker.{0}.{1:X}",
Application
.WindowsFormsVersion, pid);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (2)
69
SafeNativeMethods.OleCreatePropertyFrame(new HandleRef(parent, handle), 0, 0, "PropertyPages", 1, ref o, 1, new Guid[]{guid},
Application
.CurrentCulture.LCID, 0, IntPtr.Zero);
92
SafeNativeMethods.OleCreatePropertyFrame(new HandleRef(parent, handle), 0, 0, "PropertyPages", 1, ref o, uuids.cElems, new HandleRef(uuids, uuids.pElems),
Application
.CurrentCulture.LCID, 0, IntPtr.Zero);
winforms\Managed\System\WinForms\ContainerControl.cs (2)
1506
Application
.OnThreadException(e);
1570
Application
.OnThreadException(e);
winforms\Managed\System\WinForms\Control.cs (15)
1245
Application
.ThreadContext.FromCurrent().ActivatingControl = (value) ? this : null;
4402
Application
.ThreadContext ctx =
Application
.ThreadContext.FromId(threadId);
5794
if (
Application
.UseVisualStyles) {
5822
Application
.ParkHandle(cp, this.DpiAwarenessContext);
7507
Application
.OnThreadException(current.exception);
7828
threadCallbackMessage = SafeNativeMethods.RegisterWindowMessage(
Application
.WindowMessagesVersion + "_ThreadCallbackMessage");
8435
Application
.ParkHandle(new HandleRef(this, this.Handle), this.DpiAwarenessContext);
9776
if (
Application
.RenderWithVisualStyles && parent.RenderTransparencyWithVisualStyles) {
10026
Application
.OnThreadException(e);
11238
if (
Application
.OleRequired() != System.Threading.ApartmentState.STA) {
11998
Application
.ParkHandle(new HandleRef(window, Handle), this.DpiAwarenessContext);
12006
Application
.UnparkHandle(new HandleRef(window, Handle), window.DpiAwarenessContext);
12015
Application
.UnparkHandle(new HandleRef(window, Handle), window.DpiAwarenessContext);
14452
Application
.OnThreadException(e);
winforms\Managed\System\WinForms\DataFormats.cs (1)
185
public static readonly string Serializable =
Application
.WindowsFormsVersion + "PersistentObject";
winforms\Managed\System\WinForms\DataGridView.cs (3)
1014
return
Application
.RenderWithVisualStyles;
1022
return
Application
.RenderWithVisualStyles && this.EnableHeadersVisualStyles;
1457
return
Application
.RenderWithVisualStyles ? 1 : SystemInformation.Border3DSize.Width;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
3155
CompareInfo compInfo =
Application
.CurrentCulture.CompareInfo;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
19866
if (
Application
.RenderWithVisualStyles)
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (1)
153
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1087
Application
.OnThreadException(e);
winforms\Managed\System\WinForms\FileDialog.cs (2)
659
Application
.OnThreadException(e);
982
if (Control.CheckForIllegalCrossThreadCalls &&
Application
.OleRequired() != System.Threading.ApartmentState.STA) {
winforms\Managed\System\WinForms\FileDialog_Vista.cs (2)
29
((
Application
.VisualStyleState & VisualStyles.VisualStyleState.ClientAreaEnabled) == VisualStyles.VisualStyleState.ClientAreaEnabled);
187
Application
.OnThreadException(e);
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
257
if (Control.CheckForIllegalCrossThreadCalls &&
Application
.OleRequired() != System.Threading.ApartmentState.STA)
winforms\Managed\System\WinForms\FontDialog.cs (1)
494
Application
.OnThreadException(e);
winforms\Managed\System\WinForms\Form.cs (14)
2655
if (!
Application
.OpenFormsInternal.Contains(this)) {
2656
Application
.OpenFormsInternalAdd(this);
3553
Application
.OnThreadException(e);
4350
return string.Format(CultureInfo.CurrentCulture,
Application
.SafeTopLevelCaptionFormat, original, securityZone, securitySite);
4677
Application
.OpenFormsInternalRemove(this);
4781
Application
.OpenFormsInternalRemove(this);
4833
Application
.OpenFormsInternalAdd(this);
4834
if (
Application
.UseWaitCursor) {
5062
if (
Application
.RenderWithVisualStyles) {
5446
if (ownedForms[i] != null && !
Application
.OpenFormsInternal.Contains(ownedForms[i])) {
5487
if (ownedForms[i] != null && !
Application
.OpenFormsInternal.Contains(ownedForms[i])) {
6225
Application
.RunDialog(this);
6945
Application
.FormActivated(this.Modal, true); // inform MsoComponentManager we're active
6947
Application
.FormActivated(this.Modal, Active); // inform MsoComponentManager we're active
winforms\Managed\System\WinForms\GroupBox.cs (1)
520
if (
Application
.RenderWithVisualStyles && Width >= 10 && Height >= 10) {
winforms\Managed\System\WinForms\GroupBoxRenderer.cs (1)
55
return (!renderMatchingApplicationState ||
Application
.RenderWithVisualStyles);
winforms\Managed\System\WinForms\HtmlShim.cs (1)
128
Application
.OnThreadException(ex);
winforms\Managed\System\WinForms\InputLanguage.cs (2)
65
Application
.OleRequired();
73
Application
.OleRequired();
winforms\Managed\System\WinForms\ListBox.cs (2)
2276
if ((NativeMethods.PRF_NONCLIENT & (int)m.LParam) != 0 &&
Application
.RenderWithVisualStyles && this.BorderStyle == BorderStyle.Fixed3D) {
2840
CompareInfo compInfo = (
Application
.CurrentCulture).CompareInfo;
winforms\Managed\System\WinForms\ListView.cs (3)
667
listViewState[LISTVIEWSTATE_comctlSupportsVisualStyles] =
Application
.ComCtlSupportsVisualStyles;
4776
Application
.OleRequired();
6227
if ((NativeMethods.PRF_NONCLIENT & (int)m.LParam) != 0 &&
Application
.RenderWithVisualStyles && this.BorderStyle == BorderStyle.Fixed3D) {
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
2005
if (
Application
.RenderWithVisualStyles && this.IsHandleCreated && this.BorderStyle == BorderStyle.Fixed3D)
3177
if ((NativeMethods.PRF_NONCLIENT & unchecked( (int) (long)m.LParam)) != 0 &&
Application
.RenderWithVisualStyles && this.BorderStyle == BorderStyle.Fixed3D) {
winforms\Managed\System\WinForms\MDIClient.cs (2)
388
Application
.Idle += new EventHandler(this.OnIdle); //do this on idle (it must be mega-delayed).
392
Application
.Idle -= new EventHandler(this.OnIdle);
winforms\Managed\System\WinForms\MessageBox.cs (3)
467
if (
Application
.UseVisualStyles) {
481
Application
.BeginModalMessageLoop();
487
Application
.EndModalMessageLoop();
winforms\Managed\System\WinForms\NativeMethods.cs (1)
5752
public int lcid =
Application
.CurrentCulture.LCID;
winforms\Managed\System\WinForms\NativeWindow.cs (4)
177
Application
.ThreadContext ctx =
Application
.ThreadContext.FromId(id);
286
else if (!
Application
.CustomThreadExceptionHandlerAttached) {
1553
b.Append(
Application
.WindowsFormsVersion);
winforms\Managed\System\WinForms\NotifyIcon.cs (1)
1027
Application
.OnThreadException(e);
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (1)
194
Application
.Run(dialog);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (2)
87
if (
Application
.RenderWithVisualStyles & useComboBoxTheme) {
198
if (!
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (1)
205
sb.Append(
Application
.CurrentCulture.TextInfo.ListSeparator);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
983
Application
.Idle += new EventHandler(PropertyDescriptorGridEntry.ShowCodeIdle);
1007
Application
.Idle -= new EventHandler(PropertyDescriptorGridEntry.ShowCodeIdle);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
5579
Application
.DoEventsModal();
winforms\Managed\System\WinForms\RadioButtonRenderer.cs (1)
53
return (!renderMatchingApplicationState ||
Application
.RenderWithVisualStyles);
winforms\Managed\System\WinForms\SendKeys.cs (4)
136
Application
.ThreadExit += new EventHandler(OnThreadExit);
878
if (!wait && !
Application
.MessageLoop) {
963
Application
.DoEvents();
965
Application
.DoEvents();
winforms\Managed\System\WinForms\SplitContainer.cs (3)
2184
Application
.AddMessageFilter(splitContainerMessageFilter);
2230
Application
.RemoveMessageFilter(splitContainerMessageFilter);
2484
Application
.RemoveMessageFilter(splitContainerMessageFilter);
winforms\Managed\System\WinForms\Splitter.cs (3)
468
Application
.DoEvents();
988
Application
.AddMessageFilter(splitterMessageFilter);
1009
Application
.RemoveMessageFilter(splitterMessageFilter);
winforms\Managed\System\WinForms\StatusBar.cs (1)
95
if (
Application
.RenderWithVisualStyles && VisualStyleRenderer != null){
winforms\Managed\System\WinForms\TabControl.cs (1)
102
private readonly int tabBaseReLayoutMessage = SafeNativeMethods.RegisterWindowMessage(
Application
.WindowMessagesVersion + "_TabBaseReLayout");
winforms\Managed\System\WinForms\TabPage.cs (2)
126
if (
Application
.RenderWithVisualStyles && UseVisualStyleBackColor && (parent != null && parent.Appearance == TabAppearance.Normal)) {
701
if (
Application
.RenderWithVisualStyles && UseVisualStyleBackColor && (parent != null && parent.Appearance == TabAppearance.Normal)) {
winforms\Managed\System\WinForms\TextBox.cs (2)
607
if (
Application
.RenderWithVisualStyles && this.IsHandleCreated && this.BorderStyle == BorderStyle.Fixed3D) {
845
if ((NativeMethods.PRF_NONCLIENT & (int)m.LParam) != 0 &&
Application
.RenderWithVisualStyles && this.BorderStyle == BorderStyle.Fixed3D) {
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (3)
144
if (
Application
.AllowQuit) {
178
if (
Application
.CustomThreadExceptionHandlerAttached) {
221
if (
Application
.CustomThreadExceptionHandlerAttached) {
winforms\Managed\System\WinForms\Timer.cs (1)
435
Application
.OnThreadException(e);
winforms\Managed\System\WinForms\ToolStrip.cs (5)
2127
Application
.ThreadContext.FromCurrent().RemoveMessageFilter(restoreFocusFilter);
3469
Application
.ThreadContext.FromCurrent().RemoveMessageFilter(RestoreFocusFilter);
4088
Application
.ThreadContext.FromCurrent().RemoveMessageFilter(RestoreFocusFilter);
4753
Application
.ThreadContext.FromCurrent().AddMessageFilter(RestoreFocusFilter);
5187
Application
.ThreadContext.FromCurrent().RemoveMessageFilter(this);
winforms\Managed\System\WinForms\ToolStripComboBox.cs (2)
525
Application
.ThreadContext.FromCurrent().RemoveMessageFilter(ParentInternal.RestoreFocusFilter);
535
Application
.ThreadContext.FromCurrent().RemoveMessageFilter(ParentInternal.RestoreFocusFilter);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1126
if (IsRestrictedWindow && !
Application
.MessageLoop) {
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
252
if (
Application
.OleRequired() != System.Threading.ApartmentState.STA)
winforms\Managed\System\WinForms\ToolStripManager.cs (7)
565
return visualStylesEnabledIfPossible &&
Application
.RenderWithVisualStyles;
859
Application
.ThreadContext.FromCurrent().AddMessageFilter(this);
860
Application
.ThreadContext.FromCurrent().TrackInput(true);
862
if (!
Application
.ThreadContext.FromCurrent().GetMessageLoop(true)) {
908
Application
.ThreadContext.FromCurrent().RemoveMessageFilter(this);
909
Application
.ThreadContext.FromCurrent().TrackInput(false);
1433
if (
Application
.ThreadContext.FromCurrent().PreTranslateMessage(ref *msg)) {
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (3)
51
if (
Application
.RenderWithVisualStyles) {
679
if (!
Application
.RenderWithVisualStyles) {
685
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\TreeNode.cs (2)
1090
CompareInfo compare =
Application
.CurrentCulture.CompareInfo;
1145
CompareInfo compare =
Application
.CurrentCulture.CompareInfo;
winforms\Managed\System\WinForms\TreeView.cs (1)
3133
if ((NativeMethods.PRF_NONCLIENT & (int)m.LParam) != 0 &&
Application
.RenderWithVisualStyles && this.BorderStyle == BorderStyle.Fixed3D) {
winforms\Managed\System\WinForms\TrustManager.cs (3)
1088
Application
.EnableVisualStyles();
1089
Application
.SetCompatibleTextRenderingDefault(false);
1099
Application
.ExitThread(); //explicitly call Dispose [DevDiv2 bug 184375, OleUnitinialize not being called]
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
8157
if (
Application
.UseVisualStyles && contextCreationSucceeded && OSFeature.Feature.IsPresent(OSFeature.Themes))
winforms\Managed\System\WinForms\UpDownBase.cs (4)
359
if (!
Application
.RenderWithVisualStyles) {
803
if (
Application
.RenderWithVisualStyles) {
1095
bool themed =
Application
.RenderWithVisualStyles;
1696
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleInformation.cs (4)
231
if (
Application
.RenderWithVisualStyles) {
252
if (
Application
.RenderWithVisualStyles) {
276
if (
Application
.RenderWithVisualStyles) {
298
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
57
((
Application
.VisualStyleState & VisualStyleState.ClientAreaEnabled) == VisualStyleState.ClientAreaEnabled));
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1753
if (
Application
.RenderWithVisualStyles) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (4)
108
if (
Application
.OleRequired() != ApartmentState.STA) {
493
Application
.ParkHandle(new HandleRef(this.AXInPlaceObject, hwndInPlaceObject));
1231
if (cc is
Application
.ParkingWindow)
1361
if (
Application
.OleRequired() != System.Threading.ApartmentState.STA) {
winforms\Managed\System\WinForms\WebBrowserHelper.cs (1)
96
internal static readonly int REGMSG_MSG = SafeNativeMethods.RegisterWindowMessage(
Application
.WindowMessagesVersion + "_subclassCheck");
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (2)
39
Application
.ThreadContext context =
Application
.ThreadContext.FromCurrent();
System.Workflow.Activities (2)
Common\CompModHelpers.cs (1)
70
using (RegistryKey userRegistryKey =
Application
.UserAppDataRegistry)
Rules\Design\Dialogs\BasicBrowserDialog.cs (1)
371
Application
.DoEvents(); // Force redraw before waiting
System.Workflow.ComponentModel (17)
AuthoringOM\Design\CustomActivityDesigner.cs (4)
47
Application
.Idle -= this.ensureChildHierarchyHandler;
100
Application
.Idle += this.ensureChildHierarchyHandler;
127
Application
.Idle -= this.ensureChildHierarchyHandler;
361
Application
.RaiseIdle(new EventArgs());
AuthoringOM\Design\DesignerWidgets.cs (3)
1519
Application
.Idle -= this.idleHandler;
1569
Application
.Idle += this.idleHandler;
1581
Application
.Idle -= this.idleHandler;
AuthoringOM\Design\DocumentOutline.cs (2)
339
Application
.Idle += new System.EventHandler(this.OnIdle);
341
Application
.Idle -= new System.EventHandler(this.OnIdle);
AuthoringOM\Design\WorkflowView.cs (7)
216
Application
.AddMessageFilter(this);
231
Application
.RemoveMessageFilter(this);
250
if (!
Application
.MessageLoop || (host != null && host.Modal))
253
Application
.Idle -= this.idleEventHandler;
541
if (!
Application
.MessageLoop || (host != null && host.Modal))
544
Application
.Idle += this.idleEventHandler;
558
Application
.Idle -= this.idleEventHandler;
Shared\CompModHelpers.cs (1)
68
using (RegistryKey userRegistryKey =
Application
.UserAppDataRegistry)
WsatUI (1)
MMCUI\WSATControl.cs (1)
57
Application
.EnableVisualStyles();