304 references to ControlStyles
System.Windows.Forms (278)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (2)
84=> this.TryGetOwnerAs(out Control? owner) && owner.GetStyle(ControlStyles.ContainerControl) 348if (this.TryGetOwnerAs(out Control? owner) && owner.GetStyle(ControlStyles.UseTextForAccessibility))
System\Windows\Forms\ActiveX\AxHost.cs (1)
241SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
330if (GetStyle(ControlStyles.ResizeRedraw))
System\Windows\Forms\Control.cs (77)
264private ControlStyles _controlStyle; 329ControlStyles.AllPaintingInWmPaint 330| ControlStyles.UserPaint 331| ControlStyles.StandardClick 332| ControlStyles.StandardDoubleClick 333| ControlStyles.UseTextForAccessibility 334| ControlStyles.Selectable, 491/// participation in automatic dark mode theming based on its <see cref="ControlStyles"/> settings. 501/// <see cref="ControlStyles.ApplyThemingImplicitly"/>, we need to cache this state in this internal property 904if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 978SetStyle(ControlStyles.ResizeRedraw, true); 1208return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1213if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1408if (GetStyle(ControlStyles.ContainerControl)) 1811get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 1818SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, value); 1822SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 1828private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 1918if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2479private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 2863=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 2866=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255; 2916get => GetStyle(ControlStyles.ResizeRedraw); 2917set => SetStyle(ControlStyles.ResizeRedraw, value); 4420if ((_controlStyle & ControlStyles.Selectable) != ControlStyles.Selectable) 5343return ((ctl._controlStyle & ControlStyles.ContainerControl) == ControlStyles.ContainerControl && ctl is IContainerControl); 5414if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.Width) != 0) 5420if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified & BoundsSpecified.Height) != 0) 5815protected bool GetStyle(ControlStyles flag) => (_controlStyle & flag) == flag; 5869if (!GetStyle(ControlStyles.UserPaint)) 5924!GetStyle(ControlStyles.Opaque)); 5965bErase: !_controlStyle.HasFlag(ControlStyles.Opaque)); 6013bErase: !_controlStyle.HasFlag(ControlStyles.Opaque)); 6860if (GetStyle(ControlStyles.UserPaint)) 7170if (GetStyle(ControlStyles.UserPaint)) 7353if (!GetStyle(ControlStyles.UserPaint)) 7973if (GetStyle(ControlStyles.ResizeRedraw)) 8047if ((_controlStyle & ControlStyles.ResizeRedraw) == ControlStyles.ResizeRedraw 8360if (!GetStyle(ControlStyles.Opaque)) 8561if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 8855if (GetStyle(ControlStyles.UserPaint)) 9720if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 9901if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth) 9907if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight) 9931if (!GetStyle(ControlStyles.FixedWidth)) 9936if (!GetStyle(ControlStyles.FixedHeight)) 10349protected void SetStyle(ControlStyles flag, bool value) 10362if ((flag & ControlStyles.ApplyThemingImplicitly) == ControlStyles.ApplyThemingImplicitly 10565return GetStyle(ControlStyles.ContainerControl); 11269if (GetStyle(ControlStyles.UserPaint)) 11273if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 11415if (!GetStyle(ControlStyles.CacheText)) 11496if (!GetStyle(ControlStyles.UserMouse)) 11510if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 11653if (!GetStyle(ControlStyles.UserMouse)) 11672if (!GetStyle(ControlStyles.UserMouse)) 11686bool fireClick = _controlStyle.HasFlag(ControlStyles.StandardClick) 11832bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 11869bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 12288if ((_controlStyle & ControlStyles.EnableNotifyMessage) == ControlStyles.EnableNotifyMessage) 12340if (GetStyle(ControlStyles.UserPaint)) 12352if (GetStyle(ControlStyles.UserPaint)) 12472if (GetStyle(ControlStyles.StandardDoubleClick)) 12489if (GetStyle(ControlStyles.StandardDoubleClick)) 12514if (GetStyle(ControlStyles.StandardDoubleClick)) 12565if (GetStyle(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (5)
39SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false); 117if (GetStyle(ControlStyles.UserPaint)) 260if (GetStyle(ControlStyles.UserPaint)) 270if (GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (14)
67ControlStyles.SupportsTransparentBackColor 68| ControlStyles.Opaque 69| ControlStyles.ResizeRedraw 70| ControlStyles.OptimizedDoubleBuffer 71| ControlStyles.CacheText 72| ControlStyles.StandardClick, 81SetStyle(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw); 264SetStyle(ControlStyles.ApplyThemingImplicitly, true); 990Debug.Assert(GetStyle(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style"); 1248if (GetStyle(ControlStyles.UserPaint)) 1302if (OwnerDraw != GetStyle(ControlStyles.UserPaint)) 1304SetStyle(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
45SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
46SetStyle(ControlStyles.StandardClick, false); 487&& GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (8)
118SetStyle(ControlStyles.UserPaint | 119ControlStyles.UseTextForAccessibility | 120ControlStyles.StandardClick, false); 1997else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3649if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3758if (!GetStyle(ControlStyles.UserPaint) 3825if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup)) 3831if (!GetStyle(ControlStyles.UserPaint) && (FlatStyle == FlatStyle.Flat || FlatStyle == FlatStyle.Popup))
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (5)
384SetStyle(ControlStyles.UserPaint | 385ControlStyles.Opaque | 386ControlStyles.UserMouse, true); 388SetStyle(ControlStyles.SupportsTransparentBackColor, false); 1496SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (4)
115SetStyle(ControlStyles.FixedHeight, true); 119SetStyle(ControlStyles.UserPaint | ControlStyles.StandardClick, false); 123SetStyle(ControlStyles.UseTextForAccessibility, false);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (10)
33SetStyle(ControlStyles.ContainerControl, true); 34SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint | 35ControlStyles.ResizeRedraw, OwnerDraw); 37SetStyle(ControlStyles.Selectable, false); 197SetStyle(ControlStyles.ContainerControl, true); 199SetStyle(ControlStyles.SupportsTransparentBackColor | 200ControlStyles.UserPaint | 201ControlStyles.ResizeRedraw | 202ControlStyles.UserMouse, OwnerDraw);
System\Windows\Forms\Controls\Labels\FocusableLabel.cs (1)
14SetStyle(ControlStyles.Selectable, true);
System\Windows\Forms\Controls\Labels\Label.cs (10)
68SetStyle(ControlStyles.UserPaint | 69ControlStyles.SupportsTransparentBackColor | 70ControlStyles.OptimizedDoubleBuffer, IsOwnerDraw()); 72SetStyle(ControlStyles.FixedHeight | 73ControlStyles.Selectable, false); 75SetStyle(ControlStyles.ResizeRedraw, true); 246SetStyle(ControlStyles.ApplyThemingImplicitly, true); 338SetStyle(ControlStyles.UserPaint 339| ControlStyles.SupportsTransparentBackColor 340| ControlStyles.OptimizedDoubleBuffer, OwnerDraw);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (8)
55SetStyle(ControlStyles.AllPaintingInWmPaint 56| ControlStyles.OptimizedDoubleBuffer 57| ControlStyles.Opaque 58| ControlStyles.UserPaint 59| ControlStyles.StandardClick 60| ControlStyles.ResizeRedraw, 1007bool optimizeBackgroundRendering = !GetStyle(ControlStyles.OptimizedDoubleBuffer); 1716SetStyle(ControlStyles.Selectable, selectable);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
67SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
121SetStyle(ControlStyles.UserPaint | ControlStyles.StandardClick | ControlStyles.UseTextForAccessibility, false); 267SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\ListView\ListView.cs (4)
225SetStyle(ControlStyles.UserPaint, false); 226SetStyle(ControlStyles.StandardClick, false); 227SetStyle(ControlStyles.UseTextForAccessibility, false); 630SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (3)
138SetStyle(ControlStyles.UserPaint, false); 139SetStyle(ControlStyles.StandardClick, false); 285SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (9)
110SetStyle(ControlStyles.Opaque | ControlStyles.Selectable, false); 111SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); 196SetStyle(ControlStyles.ApplyThemingImplicitly, true); 833SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true); 839SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, false);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (4)
40SetStyle(ControlStyles.UserPaint | ControlStyles.UseTextForAccessibility | ControlStyles.Selectable, false); 48SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
21SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
17SetStyle(ControlStyles.Selectable, true);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
16SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
57SetStyle(ControlStyles.Selectable, false);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
135SetStyle(ControlStyles.OptimizedDoubleBuffer, true); 136SetStyle(ControlStyles.ResizeRedraw, false); 137SetStyle(ControlStyles.UserMouse, true);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
3528bool oldStyle = GetStyle(ControlStyles.UserMouse); 3529SetStyle(ControlStyles.UserMouse, true); 3531SetStyle(ControlStyles.UserMouse, oldStyle);
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
49SetStyle(ControlStyles.Selectable, false); 206SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
86SetStyle(ControlStyles.UserPaint, false); 274SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
37SetStyle(ControlStyles.CacheText, true); 141SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
960!GetStyle(ControlStyles.UserPaint) &&
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (9)
95SetStyle(ControlStyles.FixedHeight, _textBoxFlags[s_autoSize]); 96SetStyle(ControlStyles.StandardClick 97| ControlStyles.StandardDoubleClick 98| ControlStyles.UseTextForAccessibility 99| ControlStyles.UserPaint, false); 263SetStyle(ControlStyles.FixedHeight, value); 403SetStyle(ControlStyles.ApplyThemingImplicitly, true); 734SetStyle(ControlStyles.FixedHeight, false); 739SetStyle(ControlStyles.FixedHeight, AutoSize);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
37SetStyle(ControlStyles.ResizeRedraw, true); 617SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
130ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor, 133SetStyle(ControlStyles.Selectable, false); 3713SetStyle(ControlStyles.Selectable, TabStop);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.cs (2)
13SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (2)
21SetStyle(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (3)
27SetStyle(ControlStyles.ResizeRedraw | ControlStyles.SupportsTransparentBackColor, true); 335SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
952SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, false); 1090SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (5)
51SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer | /*ControlStyles.AllPaintingInWmPaint |*/ControlStyles.SupportsTransparentBackColor, true); 52SetStyle(ControlStyles.Selectable, false); 323SetStyle(ControlStyles.Selectable, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (3)
20SetStyle(ControlStyles.AllPaintingInWmPaint, false); 21SetStyle(ControlStyles.OptimizedDoubleBuffer, true); 22SetStyle(ControlStyles.CacheText, true);
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (11)
54SetStyle(ControlStyles.UserPaint, false); 55SetStyle(ControlStyles.UseTextForAccessibility, false); 86SetStyle(ControlStyles.FixedHeight, _autoSize); 87SetStyle(ControlStyles.FixedWidth, false); 91SetStyle(ControlStyles.FixedWidth, _autoSize); 92SetStyle(ControlStyles.FixedHeight, false); 147SetStyle(ControlStyles.ApplyThemingImplicitly, true); 378SetStyle(ControlStyles.FixedHeight, _autoSize); 379SetStyle(ControlStyles.FixedWidth, false); 384SetStyle(ControlStyles.FixedHeight, false); 385SetStyle(ControlStyles.FixedWidth, _autoSize);
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
170SetStyle(ControlStyles.UserPaint, false); 171SetStyle(ControlStyles.StandardClick, false); 172SetStyle(ControlStyles.UseTextForAccessibility, false); 307SetStyle(ControlStyles.ApplyThemingImplicitly, true); 916SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (6)
67SetStyle(ControlStyles.Opaque | ControlStyles.FixedHeight | ControlStyles.ResizeRedraw, true); 68SetStyle(ControlStyles.StandardClick, false); 69SetStyle(ControlStyles.UseTextForAccessibility, false); 218SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (4)
43SetStyle(ControlStyles.Opaque | ControlStyles.FixedHeight | ControlStyles.FixedWidth, true); 44SetStyle(ControlStyles.Selectable, false);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (2)
17SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
77SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Form.cs (1)
3810if (!GetStyle(ControlStyles.Selectable) || !Enabled || !Visible)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
90SetStyle(ControlStyles.AllPaintingInWmPaint, false);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
102SetStyle(ControlStyles.SupportsTransparentBackColor, true); 103SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\MDI\MDIClient.cs (2)
31SetStyle(ControlStyles.Selectable, false); 82SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Panels\Panel.cs (3)
31SetStyle(ControlStyles.Selectable | ControlStyles.AllPaintingInWmPaint, false); 32SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System\Windows\Forms\Panels\SplitterPanel.cs (1)
17SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
87SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
61SetStyle(ControlStyles.ResizeRedraw, false); 62SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
60SetStyle(ControlStyles.ContainerControl, true); 61SetStyle(ControlStyles.AllPaintingInWmPaint, false); 157SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Scrolling\ScrollBar.cs (4)
34SetStyle(ControlStyles.UserPaint, false); 35SetStyle(ControlStyles.StandardClick, false); 36SetStyle(ControlStyles.UseTextForAccessibility, false); 117SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\UserControl.cs (1)
34SetStyle(ControlStyles.SupportsTransparentBackColor, true);
System.Windows.Forms.Design (23)
System\ComponentModel\Design\ByteViewer.cs (1)
75SetStyle(ControlStyles.ResizeRedraw, true);
System\ComponentModel\Design\DesignerActionPanel.cs (5)
50SetStyle(ControlStyles.AllPaintingInWmPaint, true); 51SetStyle(ControlStyles.Opaque, true); 52SetStyle(ControlStyles.OptimizedDoubleBuffer, true); 53SetStyle(ControlStyles.ResizeRedraw, true); 54SetStyle(ControlStyles.UserPaint, true);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
324SetStyle(ControlStyles.Selectable, true);
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
68SetStyle(ControlStyles.Opaque, true);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
202SetStyle(ControlStyles.Selectable, false);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
31SetStyle(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ComponentTray.cs (4)
83SetStyle(ControlStyles.ResizeRedraw | ControlStyles.OptimizedDoubleBuffer, true); 1907SetStyle(ControlStyles.OptimizedDoubleBuffer, true); 1908SetStyle(ControlStyles.Selectable, false);
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
348SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
System\Windows\Forms\Design\SelectionUIService.cs (3)
62SetStyle(ControlStyles.StandardClick | ControlStyles.Opaque | ControlStyles.OptimizedDoubleBuffer, true);
System\Windows\Forms\Design\TabOrder.cs (1)
68SetStyle(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
168SetStyle(ControlStyles.Opaque, true);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
113SetStyle(ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1590SetStyle(ControlStyles.Selectable, true);
WindowsFormsIntegration (3)
System\Windows\Integration\ElementHost.cs (3)
70SetStyle(SWF.ControlStyles.SupportsTransparentBackColor, true); 71SetStyle(SWF.ControlStyles.UserPaint, true); 72SetStyle(SWF.ControlStyles.AllPaintingInWmPaint, true);