308 references to ControlStyles
System.Windows.Forms (282)
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)
275private ControlStyles _controlStyle; 339ControlStyles.AllPaintingInWmPaint 340| ControlStyles.UserPaint 341| ControlStyles.StandardClick 342| ControlStyles.StandardDoubleClick 343| ControlStyles.UseTextForAccessibility 344| ControlStyles.Selectable, 501/// participation in automatic dark mode theming based on its <see cref="ControlStyles"/> settings. 511/// <see cref="ControlStyles.ApplyThemingImplicitly"/>, we need to cache this state in this internal property 1092if (!value.Equals(Color.Empty) && !GetStyle(ControlStyles.SupportsTransparentBackColor) && value.A < 255) 1166SetStyle(ControlStyles.ResizeRedraw, true); 1396return cacheTextCounter > 0 || GetStyle(ControlStyles.CacheText); 1401if (GetStyle(ControlStyles.CacheText) || !IsHandleCreated) 1596if (GetStyle(ControlStyles.ContainerControl)) 1999get => GetStyle(ControlStyles.OptimizedDoubleBuffer); 2006SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, value); 2010SetStyle(ControlStyles.OptimizedDoubleBuffer, value); 2016private bool DoubleBufferingEnabled => GetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint); 2106if (IsHandleCreated && !GetStyle(ControlStyles.UserPaint)) 2667private bool IsValidBackColor(Color c) => c.IsEmpty || GetStyle(ControlStyles.SupportsTransparentBackColor) || c.A == 255; 3051=> GetStyle(ControlStyles.SupportsTransparentBackColor) && BackColor.A < 255; 3054=> GetStyle(ControlStyles.SupportsTransparentBackColor) && c.A < 255; 3104get => GetStyle(ControlStyles.ResizeRedraw); 3105set => SetStyle(ControlStyles.ResizeRedraw, value); 4644if ((_controlStyle & ControlStyles.Selectable) != ControlStyles.Selectable) 5575return ((ctl._controlStyle & ControlStyles.ContainerControl) == ControlStyles.ContainerControl && ctl is IContainerControl); 5647if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth && (specified & BoundsSpecified.Width) != 0) 5653if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight && (specified & BoundsSpecified.Height) != 0) 6048protected bool GetStyle(ControlStyles flag) => (_controlStyle & flag) == flag; 6102if (!GetStyle(ControlStyles.UserPaint)) 6157!GetStyle(ControlStyles.Opaque)); 6198bErase: !_controlStyle.HasFlag(ControlStyles.Opaque)); 6246bErase: !_controlStyle.HasFlag(ControlStyles.Opaque)); 7243if (GetStyle(ControlStyles.UserPaint)) 7827if (GetStyle(ControlStyles.UserPaint)) 8012if (!GetStyle(ControlStyles.UserPaint)) 8639if (GetStyle(ControlStyles.ResizeRedraw)) 8713if ((_controlStyle & ControlStyles.ResizeRedraw) == ControlStyles.ResizeRedraw 9147if (!GetStyle(ControlStyles.Opaque)) 9348if (((validationConstraints & ValidationConstraints.Selectable) == ValidationConstraints.Selectable && !c.GetStyle(ControlStyles.Selectable)) 9642if (GetStyle(ControlStyles.UserPaint)) 10507if (ScaleHelper.IsScalingRequirementMet && !GetStyle(ControlStyles.UserPaint) && !IsFontSet()) 10688if ((_controlStyle & ControlStyles.FixedWidth) != ControlStyles.FixedWidth) 10694if ((_controlStyle & ControlStyles.FixedHeight) != ControlStyles.FixedHeight) 10718if (!GetStyle(ControlStyles.FixedWidth)) 10723if (!GetStyle(ControlStyles.FixedHeight)) 11136protected void SetStyle(ControlStyles flag, bool value) 11149if ((flag & ControlStyles.ApplyThemingImplicitly) == ControlStyles.ApplyThemingImplicitly 11352return GetStyle(ControlStyles.ContainerControl); 12056if (GetStyle(ControlStyles.UserPaint)) 12060if (!GetStyle(ControlStyles.AllPaintingInWmPaint)) 12202if (!GetStyle(ControlStyles.CacheText)) 12283if (!GetStyle(ControlStyles.UserMouse)) 12297if (button == MouseButtons.Left && GetStyle(ControlStyles.Selectable)) 12440if (!GetStyle(ControlStyles.UserMouse)) 12459if (!GetStyle(ControlStyles.UserMouse)) 12473bool fireClick = _controlStyle.HasFlag(ControlStyles.StandardClick) 12619bool doubleBuffered = DoubleBuffered || (GetStyle(ControlStyles.AllPaintingInWmPaint) && DoubleBufferingEnabled); 12656bool paintBackground = (usingBeginPaint && GetStyle(ControlStyles.AllPaintingInWmPaint)) || doubleBuffered; 13075if ((_controlStyle & ControlStyles.EnableNotifyMessage) == ControlStyles.EnableNotifyMessage) 13127if (GetStyle(ControlStyles.UserPaint)) 13139if (GetStyle(ControlStyles.UserPaint)) 13259if (GetStyle(ControlStyles.StandardDoubleClick)) 13276if (GetStyle(ControlStyles.StandardDoubleClick)) 13301if (GetStyle(ControlStyles.StandardDoubleClick)) 13352if (GetStyle(ControlStyles.StandardDoubleClick))
System\Windows\Forms\Controls\Buttons\Button.cs (5)
39SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false); 117if (GetStyle(ControlStyles.UserPaint)) 232if (GetStyle(ControlStyles.UserPaint)) 242if (GetStyle(ControlStyles.UserPaint))
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (14)
70ControlStyles.SupportsTransparentBackColor 71| ControlStyles.Opaque 72| ControlStyles.ResizeRedraw 73| ControlStyles.OptimizedDoubleBuffer 74| ControlStyles.CacheText 75| ControlStyles.StandardClick, 84SetStyle(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw); 267SetStyle(ControlStyles.ApplyThemingImplicitly, true); 952Debug.Assert(GetStyle(ControlStyles.UserPaint), "Shouldn't be in PaintControl when control is not UserPaint style"); 1233if (GetStyle(ControlStyles.UserPaint)) 1345if (OwnerDraw != GetStyle(ControlStyles.UserPaint)) 1347SetStyle(ControlStyles.UserMouse | ControlStyles.UserPaint, OwnerDraw);
System\Windows\Forms\Controls\Buttons\CheckBox.cs (4)
49SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false); 139SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (4)
48SetStyle(ControlStyles.StandardClick, false); 585SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true); 627&& GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (8)
123SetStyle(ControlStyles.UserPaint | 124ControlStyles.UseTextForAccessibility | 125ControlStyles.StandardClick, false); 2085else if (msg == PInvokeCore.WM_CTLCOLORLISTBOX && GetStyle(ControlStyles.UserPaint)) 3821if (!Application.RenderWithVisualStyles && !GetStyle(ControlStyles.UserPaint) 3971if (!GetStyle(ControlStyles.UserPaint) 4120if (!GetStyle(ControlStyles.UserPaint) 4127if (!GetStyle(ControlStyles.UserPaint)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (5)
389SetStyle(ControlStyles.UserPaint | 390ControlStyles.Opaque | 391ControlStyles.UserMouse, true); 393SetStyle(ControlStyles.SupportsTransparentBackColor, false); 1501SetStyle(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); 203SetStyle(ControlStyles.ContainerControl, true); 205SetStyle(ControlStyles.SupportsTransparentBackColor | 206ControlStyles.UserPaint | 207ControlStyles.ResizeRedraw | 208ControlStyles.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, 1019bool optimizeBackgroundRendering = !GetStyle(ControlStyles.OptimizedDoubleBuffer); 1728SetStyle(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)
3637bool oldStyle = GetStyle(ControlStyles.UserMouse); 3638SetStyle(ControlStyles.UserMouse, true); 3640SetStyle(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)
1006!GetStyle(ControlStyles.UserPaint) &&
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (9)
106SetStyle(ControlStyles.FixedHeight, _textBoxFlags[s_autoSize]); 107SetStyle(ControlStyles.StandardClick 108| ControlStyles.StandardDoubleClick 109| ControlStyles.UseTextForAccessibility 110| ControlStyles.UserPaint, false); 270SetStyle(ControlStyles.FixedHeight, value); 430SetStyle(ControlStyles.ApplyThemingImplicitly, true); 767SetStyle(ControlStyles.FixedHeight, false); 772SetStyle(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)
135ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.SupportsTransparentBackColor, 138SetStyle(ControlStyles.Selectable, false); 3718SetStyle(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)
79SetStyle(ControlStyles.Opaque 80| ControlStyles.FixedHeight 81| ControlStyles.ResizeRedraw, true); 83SetStyle(ControlStyles.StandardClick, false); 84SetStyle(ControlStyles.UseTextForAccessibility, false); 233SetStyle(ControlStyles.ApplyThemingImplicitly, true);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (4)
44SetStyle(ControlStyles.Opaque | ControlStyles.FixedHeight | ControlStyles.FixedWidth, true); 45SetStyle(ControlStyles.Selectable, false);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (2)
18SetStyle(ControlStyles.FixedHeight | ControlStyles.FixedWidth, true);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
77SetStyle(ControlStyles.UserPaint, false);
System\Windows\Forms\Form.cs (1)
3819if (!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)
62SetStyle(ControlStyles.ResizeRedraw, false); 63SetStyle(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)
210SetStyle(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);