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