186 references to SetStyle
System.Windows.Forms (132)
System\Windows\Forms\ActiveX\AxHost.cs (1)
240
SetStyle
(ControlStyles.UserPaint, false);
System\Windows\Forms\Control.cs (5)
321
SetStyle
(
883
SetStyle
(ControlStyles.ResizeRedraw, true);
1730
SetStyle
(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, value);
1734
SetStyle
(ControlStyles.OptimizedDoubleBuffer, value);
2829
set =>
SetStyle
(ControlStyles.ResizeRedraw, value);
System\Windows\Forms\Controls\Buttons\Button.cs (1)
39
SetStyle
(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (4)
66
SetStyle
(
79
SetStyle
(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw);
82
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
1242
SetStyle
(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
45
SetStyle
(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
46
SetStyle
(ControlStyles.StandardClick, false);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
118
SetStyle
(ControlStyles.UserPaint |
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
384
SetStyle
(ControlStyles.UserPaint |
388
SetStyle
(ControlStyles.SupportsTransparentBackColor, false);
391
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (3)
115
SetStyle
(ControlStyles.FixedHeight, true);
119
SetStyle
(ControlStyles.UserPaint | ControlStyles.StandardClick, false);
123
SetStyle
(ControlStyles.UseTextForAccessibility, false);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (5)
33
SetStyle
(ControlStyles.ContainerControl, true);
34
SetStyle
(ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint |
37
SetStyle
(ControlStyles.Selectable, false);
197
SetStyle
(ControlStyles.ContainerControl, true);
199
SetStyle
(ControlStyles.SupportsTransparentBackColor |
System\Windows\Forms\Controls\Labels\Label.cs (5)
68
SetStyle
(ControlStyles.UserPaint |
72
SetStyle
(ControlStyles.FixedHeight |
75
SetStyle
(ControlStyles.ResizeRedraw, true);
78
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
340
SetStyle
(ControlStyles.UserPaint
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
55
SetStyle
(ControlStyles.AllPaintingInWmPaint
1718
SetStyle
(ControlStyles.Selectable, selectable);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
67
SetStyle
(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
121
SetStyle
(ControlStyles.UserPaint | ControlStyles.StandardClick | ControlStyles.UseTextForAccessibility, false);
124
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\ListView\ListView.cs (3)
225
SetStyle
(ControlStyles.UserPaint, false);
226
SetStyle
(ControlStyles.StandardClick, false);
227
SetStyle
(ControlStyles.UseTextForAccessibility, false);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (3)
138
SetStyle
(ControlStyles.UserPaint, false);
139
SetStyle
(ControlStyles.StandardClick, false);
141
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (5)
111
SetStyle
(ControlStyles.Opaque | ControlStyles.Selectable, false);
112
SetStyle
(ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, true);
115
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
836
SetStyle
(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
842
SetStyle
(ControlStyles.FixedHeight | ControlStyles.FixedWidth, false);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
40
SetStyle
(ControlStyles.UserPaint | ControlStyles.UseTextForAccessibility | ControlStyles.Selectable, false);
42
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
21
SetStyle
(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
16
SetStyle
(ControlStyles.Selectable, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
16
SetStyle
(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
57
SetStyle
(ControlStyles.Selectable, false);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
134
SetStyle
(ControlStyles.OptimizedDoubleBuffer, true);
135
SetStyle
(ControlStyles.ResizeRedraw, false);
136
SetStyle
(ControlStyles.UserMouse, true);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
3501
SetStyle
(ControlStyles.UserMouse, true);
3503
SetStyle
(ControlStyles.UserMouse, oldStyle);
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
49
SetStyle
(ControlStyles.Selectable, false);
51
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
85
SetStyle
(ControlStyles.UserPaint, false);
87
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
37
SetStyle
(ControlStyles.CacheText, true);
39
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (6)
95
SetStyle
(ControlStyles.FixedHeight, _textBoxFlags[s_autoSize]);
96
SetStyle
(ControlStyles.StandardClick
102
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
267
SetStyle
(ControlStyles.FixedHeight, value);
733
SetStyle
(ControlStyles.FixedHeight, false);
738
SetStyle
(ControlStyles.FixedHeight, AutoSize);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
38
SetStyle
(ControlStyles.ResizeRedraw, true);
614
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
130
SetStyle
(
134
SetStyle
(ControlStyles.Selectable, false);
3714
SetStyle
(ControlStyles.Selectable, TabStop);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (1)
13
SetStyle
(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
21
SetStyle
(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (2)
27
SetStyle
(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);
335
SetStyle
(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
955
SetStyle
(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, false);
1096
SetStyle
(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (3)
51
SetStyle
(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer | /*ControlStyles.AllPaintingInWmPaint |*/ControlStyles.SupportsTransparentBackColor, true);
52
SetStyle
(ControlStyles.Selectable, false);
323
SetStyle
(ControlStyles.Selectable, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (3)
20
SetStyle
(ControlStyles.AllPaintingInWmPaint, false);
21
SetStyle
(ControlStyles.OptimizedDoubleBuffer, true);
22
SetStyle
(ControlStyles.CacheText, true);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (11)
55
SetStyle
(ControlStyles.UserPaint, false);
56
SetStyle
(ControlStyles.UseTextForAccessibility, false);
59
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
90
SetStyle
(ControlStyles.FixedHeight, _autoSize);
91
SetStyle
(ControlStyles.FixedWidth, false);
95
SetStyle
(ControlStyles.FixedWidth, _autoSize);
96
SetStyle
(ControlStyles.FixedHeight, false);
380
SetStyle
(ControlStyles.FixedHeight, _autoSize);
381
SetStyle
(ControlStyles.FixedWidth, false);
386
SetStyle
(ControlStyles.FixedHeight, false);
387
SetStyle
(ControlStyles.FixedWidth, _autoSize);
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
170
SetStyle
(ControlStyles.UserPaint, false);
171
SetStyle
(ControlStyles.StandardClick, false);
172
SetStyle
(ControlStyles.UseTextForAccessibility, false);
174
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
918
SetStyle
(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (4)
67
SetStyle
(ControlStyles.Opaque | ControlStyles.FixedHeight | ControlStyles.ResizeRedraw, true);
68
SetStyle
(ControlStyles.StandardClick, false);
69
SetStyle
(ControlStyles.UseTextForAccessibility, false);
72
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (3)
35
SetStyle
(ControlStyles.Opaque | ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
36
SetStyle
(ControlStyles.Selectable, false);
39
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
17
SetStyle
(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
77
SetStyle
(ControlStyles.UserPaint, false);
System\Windows\Forms\Form.cs (1)
210
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
91
SetStyle
(ControlStyles.AllPaintingInWmPaint, false);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
102
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
103
SetStyle
(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\MDI\MDIClient.cs (2)
31
SetStyle
(ControlStyles.Selectable, false);
34
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Panels\Panel.cs (3)
31
SetStyle
(ControlStyles.Selectable | ControlStyles.AllPaintingInWmPaint, false);
32
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
35
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
17
SetStyle
(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
87
SetStyle
(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
61
SetStyle
(ControlStyles.ResizeRedraw, false);
62
SetStyle
(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
60
SetStyle
(ControlStyles.ContainerControl, true);
61
SetStyle
(ControlStyles.AllPaintingInWmPaint, false);
65
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
34
SetStyle
(ControlStyles.UserPaint, false);
35
SetStyle
(ControlStyles.StandardClick, false);
36
SetStyle
(ControlStyles.UseTextForAccessibility, false);
39
SetStyle
(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\UserControl.cs (1)
34
SetStyle
(ControlStyles.SupportsTransparentBackColor, true);
System.Windows.Forms.Design (18)
System\ComponentModel\Design\ByteViewer.cs (1)
75
SetStyle
(ControlStyles.ResizeRedraw, true);
System\ComponentModel\Design\DesignerActionPanel.cs (5)
50
SetStyle
(ControlStyles.AllPaintingInWmPaint, true);
51
SetStyle
(ControlStyles.Opaque, true);
52
SetStyle
(ControlStyles.OptimizedDoubleBuffer, true);
53
SetStyle
(ControlStyles.ResizeRedraw, true);
54
SetStyle
(ControlStyles.UserPaint, true);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
324
SetStyle
(ControlStyles.Selectable, true);
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
68
SetStyle
(ControlStyles.Opaque, true);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
195
SetStyle
(ControlStyles.Selectable, false);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
31
SetStyle
(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ComponentTray.cs (3)
83
SetStyle
(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, true);
1922
SetStyle
(ControlStyles.OptimizedDoubleBuffer, true);
1923
SetStyle
(ControlStyles.Selectable, false);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
348
SetStyle
(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
System\Windows\Forms\Design\SelectionUIService.cs (1)
62
SetStyle
(ControlStyles.StandardClick | ControlStyles.Opaque | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Design\TabOrder.cs (1)
68
SetStyle
(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
174
SetStyle
(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1638
SetStyle
(ControlStyles.Selectable, true);
System.Windows.Forms.Tests (33)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1742
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ButtonBaseTests.cs (1)
9375
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ButtonTests.cs (1)
3771
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ComboBoxTests.cs (1)
2936
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ContainerControlTests.cs (1)
1396
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ControlTests.cs (1)
1430
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ControlTests.Methods.cs (3)
2232
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
10178
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
14189
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
2180
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\GroupBoxTests.cs (1)
2387
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ListViewTests.cs (1)
6161
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\MenuStripTests.cs (1)
946
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\MonthCalendarTests.cs (1)
4820
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\PanelTests.cs (1)
1234
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\PictureBoxTests.cs (1)
2928
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ProgressBarTests.cs (1)
2674
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\RadioButtonTests.cs (1)
1619
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\RichTextBoxTests.cs (1)
11000
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ScrollableControlTests.cs (1)
2662
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ScrollBarTests.cs (1)
3246
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\TabControlTests.cs (1)
5819
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
2259
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\TabPageTests.cs (1)
5311
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
2096
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
5238
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\ToolStripTests.cs (1)
7690
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
System\Windows\Forms\UserControlTests.cs (2)
1780
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
1877
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
TextBoxBaseTests.cs (1)
7783
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
TextBoxTests.cs (1)
761
set =>
SetStyle
(ControlStyles.UserPaint, value);
TrackBarTests.cs (1)
3370
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
WebBrowserBaseTests.cs (1)
952
public new void SetStyle(ControlStyles flag, bool value) => base.
SetStyle
(flag, value);
WindowsFormsIntegration (3)
System\Windows\Integration\ElementHost.cs (3)
74
SetStyle
(SWF.ControlStyles.SupportsTransparentBackColor, true);
75
SetStyle
(SWF.ControlStyles.UserPaint, true);
76
SetStyle
(SWF.ControlStyles.AllPaintingInWmPaint, true);