200 references to UserPaint
System.Windows.Forms (48)
System\Windows\Forms\ActiveX\AxHost.cs (1)
240SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Control.cs (12)
323| ControlStyles.UserPaint 1740private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 1830if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 5741if (!GetStyle(ControlStyles.UserPaint)) 6730if (GetStyle(ControlStyles.UserPaint)) 7043if (GetStyle(ControlStyles.UserPaint)) 7226if (!GetStyle(ControlStyles.UserPaint)) 8737if (GetStyle(ControlStyles.UserPaint)) 9582if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 11128if (GetStyle(ControlStyles.UserPaint)) 12199if (GetStyle(ControlStyles.UserPaint)) 12211if (GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\Button.cs (3)
116if (GetStyle(ControlStyles.UserPaint)) 224if (GetStyle(ControlStyles.UserPaint)) 234if (GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (5)
79SetStyle(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw); 936Debug.Assert(GetStyle(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style"); 1190if (GetStyle(ControlStyles.UserPaint)) 1240if (OwnerDraw != GetStyle(ControlStyles.UserPaint)) 1242SetStyle(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
470&& GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
118SetStyle(ControlStyles.UserPaint | 1998else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3661if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3731if (!GetStyle(ControlStyles.UserPaint) 3784if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3790if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
384SetStyle(ControlStyles.UserPaint |
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
119SetStyle(ControlStyles.UserPaint | ControlStyles.StandardClick, false);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
34SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint | 200ControlStyles.UserPaint |
System\Windows\Forms\Controls\Labels\Label.cs (2)
68SetStyle(ControlStyles.UserPaint | 340SetStyle(ControlStyles.UserPaint
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
58| ControlStyles.UserPaint
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
121SetStyle(ControlStyles.UserPaint | ControlStyles.StandardClick | ControlStyles.UseTextForAccessibility, false);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
225SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
138SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
40SetStyle(ControlStyles.UserPaint | ControlStyles.UseTextForAccessibility | ControlStyles.Selectable, false);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
16SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
85SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
979!GetStyle(ControlStyles.UserPaint) &&
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
99| ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
55SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
170SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
77SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
62SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
34SetStyle(ControlStyles.UserPaint, false);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
54SetStyle(ControlStyles.UserPaint, true);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
348SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
192[InlineData(ControlStyles.UserPaint, true)]
System.Windows.Forms.Tests (148)
System\Windows\Forms\ButtonBaseTests.cs (13)
1065Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1073Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1107Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1115Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1161Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1171Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1215Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1225Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1274Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1284Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1340Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 1353Assert.Equal(value != FlatStyle.System, control.GetStyle(ControlStyles.UserPaint)); 5062[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ButtonTests.cs (6)
149control.SetStyle(ControlStyles.UserPaint, userPaint); 1768[InlineData(ControlStyles.UserPaint, true)] 3378control.SetStyle(ControlStyles.UserPaint, userPaint); 3417control.SetStyle(ControlStyles.UserPaint, userPaint); 3451control.SetStyle(ControlStyles.UserPaint, userPaint); 3483control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\CheckBoxTests.cs (1)
496[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ComboBoxTests.cs (9)
1454[InlineData(ControlStyles.UserPaint, false)] 1803control.SetStyle(ControlStyles.UserPaint, userPaint); 1830control.SetStyle(ControlStyles.UserPaint, userPaint); 1878control.SetStyle(ControlStyles.UserPaint, userPaint); 1912control.SetStyle(ControlStyles.UserPaint, userPaint); 1976control.SetStyle(ControlStyles.UserPaint, userPaint); 2014control.SetStyle(ControlStyles.UserPaint, userPaint); 2073control.SetStyle(ControlStyles.UserPaint, userPaint); 2118control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\ContainerControlTests.cs (1)
512[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ControlTests.Handlers.cs (10)
462Assert.True(control.GetStyle(ControlStyles.UserPaint)); 1437Assert.True(control.GetStyle(ControlStyles.UserPaint)); 1469control.SetStyle(ControlStyles.UserPaint, false); 1471Assert.False(control.GetStyle(ControlStyles.UserPaint)); 1695control.SetStyle(ControlStyles.UserPaint, userPaint); 2152control.SetStyle(ControlStyles.UserPaint, userPaint); 4631control.SetStyle(ControlStyles.UserPaint, userPaint); 4682control.SetStyle(ControlStyles.UserPaint, userPaint); 5625control.SetStyle(ControlStyles.UserPaint, userPaint); 5671control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\ControlTests.Methods.cs (17)
418Assert.True(control.GetStyle(ControlStyles.UserPaint)); 439control.SetStyle(ControlStyles.UserPaint, false); 440Assert.False(control.GetStyle(ControlStyles.UserPaint)); 624control.SetStyle(ControlStyles.UserPaint, resizeRedraw); 2856[InlineData(ControlStyles.UserPaint, true)] 9983yield return new object[] { ControlStyles.UserPaint, true, true }; 9984yield return new object[] { ControlStyles.UserPaint, false, false }; 12851control.SetStyle(ControlStyles.UserPaint, userPaint); 12887control.SetStyle(ControlStyles.UserPaint, userPaint); 12932control.SetStyle(ControlStyles.UserPaint, userPaint); 12975control.SetStyle(ControlStyles.UserPaint, userPaint); 13175control.SetStyle(ControlStyles.UserPaint, userPaint); 13198control.SetStyle(ControlStyles.UserPaint, true); 13230control.SetStyle(ControlStyles.UserPaint, userPaint); 13270control.SetStyle(ControlStyles.UserPaint, userPaint); 13300control.SetStyle(ControlStyles.UserPaint, true); 13340control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\ControlTests.Properties.cs (7)
4530control.SetStyle(ControlStyles.UserPaint, userPaint); 4538Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 4944control.SetStyle(ControlStyles.UserPaint, userPaint); 4946Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 4990control.SetStyle(ControlStyles.UserPaint, userPaint); 4992Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 12774control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
1099[InlineData(ControlStyles.UserPaint, false)] 1275control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\DateTimePickerTests.cs (1)
862[InlineData(ControlStyles.UserPaint, false)]
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
215[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
677[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\DomainUpDownTests.cs (1)
1065[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
279[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\FormTests.cs (1)
2430[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\GroupBoxTests.cs (14)
631Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 641Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 676Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 685Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 718Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 731Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 772Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 785Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 835Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 848Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 899Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 912Assert.Equal(ownerDraw, control.GetStyle(ControlStyles.UserPaint)); 1414[InlineData(ControlStyles.UserPaint, true)] 1541control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\HScrollBarTests.cs (1)
209[InlineData(ControlStyles.UserPaint, false)]
System\Windows\Forms\LabelTests.cs (1)
146[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ListBoxTests.cs (1)
4898[InlineData(ControlStyles.UserPaint, false)]
System\Windows\Forms\ListControlTests.cs (1)
2563[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ListViewTests.cs (1)
4255[InlineData(ControlStyles.UserPaint, false)]
System\Windows\Forms\MenuStripTests.cs (1)
512[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\MonthCalendarTests.cs (1)
3324[InlineData(ControlStyles.UserPaint, false)]
System\Windows\Forms\PanelTests.cs (1)
853[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\PictureBoxTests.cs (2)
1869[InlineData(ControlStyles.UserPaint, true)] 2218Assert.True(control.GetStyle(ControlStyles.UserPaint));
System\Windows\Forms\ProgressBarTests.cs (2)
1798[InlineData(ControlStyles.UserPaint, false)] 2141Assert.False(control.GetStyle(ControlStyles.UserPaint));
System\Windows\Forms\PropertyGridTests.cs (1)
3474[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\RadioButtonTests.cs (2)
149control.SetStyle(ControlStyles.UserPaint, userPaint); 623[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\RichTextBoxTests.cs (9)
1427control.SetStyle(ControlStyles.UserPaint, userPaint); 1429Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1464control.SetStyle(ControlStyles.UserPaint, userPaint); 1466Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1511control.SetStyle(ControlStyles.UserPaint, userPaint); 1513Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1550control.SetStyle(ControlStyles.UserPaint, userPaint); 1552Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 8971[InlineData(ControlStyles.UserPaint, false)]
System\Windows\Forms\ScrollableControlTests.cs (1)
1350[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ScrollBarTests.cs (2)
1862[InlineData(ControlStyles.UserPaint, false)] 2689control.SetStyle(ControlStyles.UserPaint, userPaint);
System\Windows\Forms\SplitterTests.cs (1)
1641[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\StatusStripTests.cs (1)
1097[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\TabControlTests.cs (1)
3930[InlineData(ControlStyles.UserPaint, false)]
System\Windows\Forms\TableLayoutPanelTests.cs (1)
1169[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\TabPageTests.cs (4)
1025control.SetStyle(ControlStyles.UserPaint, userPaint); 1033Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 3610control.SetStyle(ControlStyles.UserPaint, userPaint); 3775[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1673[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ToolStripDropDownTests.cs (1)
3644[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ToolStripPanelTests.cs (1)
307[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\ToolStripTests.cs (2)
4133control.SetStyle(ControlStyles.UserPaint, userPaint); 4922[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\TreeViewTests.cs (4)
5045[InlineData(ControlStyles.UserPaint, false)] 5976Assert.False(control.GetStyle(ControlStyles.UserPaint)); 6032Assert.False(control.GetStyle(ControlStyles.UserPaint)); 6113Assert.False(control.GetStyle(ControlStyles.UserPaint));
System\Windows\Forms\UpDownBaseTests.cs (1)
1682[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\UserControlTests.cs (1)
897[InlineData(ControlStyles.UserPaint, true)]
System\Windows\Forms\VScrollBarTests.cs (1)
199[InlineData(ControlStyles.UserPaint, false)]
System\Windows\Forms\WebBrowserTests.cs (1)
2816[InlineData(ControlStyles.UserPaint, false)]
TextBoxBaseTests.cs (9)
965control.SetStyle(ControlStyles.UserPaint, userPaint); 967Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1002control.SetStyle(ControlStyles.UserPaint, userPaint); 1004Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1049control.SetStyle(ControlStyles.UserPaint, userPaint); 1051Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 1088control.SetStyle(ControlStyles.UserPaint, userPaint); 1090Assert.Equal(userPaint, control.GetStyle(ControlStyles.UserPaint)); 5142[InlineData(ControlStyles.UserPaint, false)]
TextBoxTests.cs (3)
495[InlineData(ControlStyles.UserPaint, false)] 760get => GetStyle(ControlStyles.UserPaint); 761set => SetStyle(ControlStyles.UserPaint, value);
TrackBarTests.cs (1)
2273[InlineData(ControlStyles.UserPaint, false)]
WebBrowserBaseTests.cs (1)
764[InlineData(ControlStyles.UserPaint, false)]
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
75SetStyle(SWF.ControlStyles.UserPaint, true);