206 writes to Style
System.Windows.Forms (205)
winforms\Managed\System\WinForms\AxHost.cs (1)
316
cp.
Style
= cp.Style & (~NativeMethods.WS_VISIBLE);
winforms\Managed\System\WinForms\Button.cs (3)
159
cp.
Style
|= NativeMethods.BS_OWNERDRAW;
162
cp.
Style
|= NativeMethods.BS_PUSHBUTTON;
164
cp.
Style
|= NativeMethods.BS_DEFPUSHBUTTON;
winforms\Managed\System\WinForms\ButtonBase.cs (8)
203
cp.
Style
|= NativeMethods.BS_MULTILINE;
206
cp.
Style
|= NativeMethods.BS_DEFPUSHBUTTON;
212
cp.
Style
|= NativeMethods.BS_LEFT;
215
cp.
Style
|= NativeMethods.BS_RIGHT;
218
cp.
Style
|= NativeMethods.BS_CENTER;
222
cp.
Style
|= NativeMethods.BS_TOP;
225
cp.
Style
|= NativeMethods.BS_BOTTOM;
228
cp.
Style
|= NativeMethods.BS_VCENTER;
winforms\Managed\System\WinForms\CheckBox.cs (4)
318
cp.
Style
|= NativeMethods.BS_OWNERDRAW;
321
cp.
Style
|= NativeMethods.BS_3STATE;
323
cp.
Style
|= NativeMethods.BS_PUSHLIKE;
330
cp.
Style
|= NativeMethods.BS_RIGHTBUTTON;
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
194
cp.
Style
|= NativeMethods.LBS_OWNERDRAWFIXED | NativeMethods.LBS_WANTKEYBOARDINPUT;
winforms\Managed\System\WinForms\ComboBox.cs (7)
420
cp.
Style
|= NativeMethods.WS_VSCROLL | NativeMethods.CBS_HASSTRINGS | NativeMethods.CBS_AUTOHSCROLL;
422
if (!integralHeight) cp.
Style
|= NativeMethods.CBS_NOINTEGRALHEIGHT;
426
cp.
Style
|= NativeMethods.CBS_SIMPLE;
429
cp.
Style
|= NativeMethods.CBS_DROPDOWN;
434
cp.
Style
|= NativeMethods.CBS_DROPDOWNLIST;
442
cp.
Style
|= NativeMethods.CBS_OWNERDRAWFIXED;
445
cp.
Style
|= NativeMethods.CBS_OWNERDRAWVARIABLE;
winforms\Managed\System\WinForms\Control.cs (7)
1862
cp.
Style
= 0;
1872
cp.
Style
= NativeMethods.WS_CLIPCHILDREN;
1883
cp.
Style
|= NativeMethods.WS_CHILD | NativeMethods.WS_CLIPSIBLINGS;
1889
if ((state & STATE_TABSTOP) != 0) cp.
Style
|= NativeMethods.WS_TABSTOP;
1890
if ((state & STATE_VISIBLE) != 0) cp.
Style
|= NativeMethods.WS_VISIBLE;
1894
if (!Enabled) cp.
Style
|= NativeMethods.WS_DISABLED;
12745
cp.
Style
|= NativeMethods.WS_VISIBLE;
winforms\Managed\System\WinForms\DataGridToolTip.cs (1)
45
cparams.
Style
= NativeMethods.TTS_ALWAYSTIP;
winforms\Managed\System\WinForms\DateTimePicker.cs (3)
466
cp.
Style
|= style;
470
cp.
Style
|= NativeMethods.DTS_LONGDATEFORMAT;
475
cp.
Style
|= TIMEFORMAT_NOUPDOWN;
winforms\Managed\System\WinForms\Design\ComponentEditorPage.cs (1)
157
cp.
Style
&= ~(NativeMethods.WS_BORDER | NativeMethods.WS_OVERLAPPED | NativeMethods.WS_DLGFRAME);
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
948
cparams.
Style
= NativeMethods.WS_VISIBLE | NativeMethods.WS_CHILD;
965
cparams.
Style
= NativeMethods.TTS_ALWAYSTIP;
winforms\Managed\System\WinForms\Form.cs (21)
999
cp.
Style
|= NativeMethods.WS_DISABLED;
1005
cp.
Style
&= (~NativeMethods.WS_DISABLED);
1043
cp.
Style
|= NativeMethods.WS_MAXIMIZE;
1050
cp.
Style
|= NativeMethods.WS_MAXIMIZE;
1063
cp.
Style
&= (~NativeMethods.WS_VISIBLE);
3887
cp.
Style
|= NativeMethods.WS_CAPTION;
3893
cp.
Style
|= NativeMethods.WS_SYSMENU | NativeMethods.WS_CAPTION;
3896
cp.
Style
&= (~NativeMethods.WS_SYSMENU);
3900
cp.
Style
|= NativeMethods.WS_MAXIMIZEBOX;
3903
cp.
Style
&= ~NativeMethods.WS_MAXIMIZEBOX;
3907
cp.
Style
|= NativeMethods.WS_MINIMIZEBOX;
3910
cp.
Style
&= ~NativeMethods.WS_MINIMIZEBOX;
3942
cp.
Style
|= NativeMethods.WS_BORDER;
3945
cp.
Style
|= NativeMethods.WS_BORDER | NativeMethods.WS_THICKFRAME;
3948
cp.
Style
|= NativeMethods.WS_BORDER;
3952
cp.
Style
|= NativeMethods.WS_BORDER;
3956
cp.
Style
|= NativeMethods.WS_BORDER;
3960
cp.
Style
|= NativeMethods.WS_BORDER | NativeMethods.WS_THICKFRAME;
4064
cp.
Style
|= NativeMethods.WS_MAXIMIZE;
4067
cp.
Style
|= NativeMethods.WS_MINIMIZE;
7818
cp.
Style
|= NativeMethods.TTS_ALWAYSTIP | NativeMethods.TTS_BALLOON;
winforms\Managed\System\WinForms\GroupBox.cs (2)
157
cp.
Style
|= NativeMethods.BS_GROUPBOX;
163
cp.
Style
&= ~NativeMethods.BS_GROUPBOX;
winforms\Managed\System\WinForms\HScrollBar.cs (1)
45
cp.
Style
|= NativeMethods.SBS_HORZ;
winforms\Managed\System\WinForms\Label.cs (8)
329
cp.
Style
|= NativeMethods.SS_OWNERDRAW;
343
cp.
Style
|= NativeMethods.SS_LEFT;
349
cp.
Style
|= NativeMethods.SS_RIGHT;
355
cp.
Style
|= NativeMethods.SS_CENTER;
360
cp.
Style
|= NativeMethods.SS_LEFT;
364
cp.
Style
|= NativeMethods.WS_BORDER;
367
cp.
Style
|= NativeMethods.SS_SUNKEN;
372
cp.
Style
|= NativeMethods.SS_NOPREFIX;
winforms\Managed\System\WinForms\ListBox.cs (12)
339
cp.
Style
|= NativeMethods.WS_VSCROLL | NativeMethods.LBS_NOTIFY | NativeMethods.LBS_HASSTRINGS;
340
if (scrollAlwaysVisible) cp.
Style
|= NativeMethods.LBS_DISABLENOSCROLL;
341
if (!integralHeight) cp.
Style
|= NativeMethods.LBS_NOINTEGRALHEIGHT;
342
if (useTabStops) cp.
Style
|= NativeMethods.LBS_USETABSTOPS;
349
cp.
Style
|= NativeMethods.WS_BORDER;
354
cp.
Style
|= NativeMethods.LBS_MULTICOLUMN | NativeMethods.WS_HSCROLL;
357
cp.
Style
|= NativeMethods.WS_HSCROLL;
362
cp.
Style
|= NativeMethods.LBS_NOSEL;
365
cp.
Style
|= NativeMethods.LBS_MULTIPLESEL;
368
cp.
Style
|= NativeMethods.LBS_EXTENDEDSEL;
378
cp.
Style
|= NativeMethods.LBS_OWNERDRAWFIXED;
381
cp.
Style
|= NativeMethods.LBS_OWNERDRAWVARIABLE;
winforms\Managed\System\WinForms\ListView.cs (16)
689
cp.
Style
|= (currentStyle & (NativeMethods.WS_HSCROLL | NativeMethods.WS_VSCROLL));
692
cp.
Style
|= NativeMethods.LVS_SHAREIMAGELISTS;
696
cp.
Style
|= NativeMethods.LVS_ALIGNTOP;
699
cp.
Style
|= NativeMethods.LVS_ALIGNLEFT;
704
cp.
Style
|= NativeMethods.LVS_AUTOARRANGE;
711
cp.
Style
|= NativeMethods.WS_BORDER;
717
cp.
Style
|= NativeMethods.LVS_NOCOLUMNHEADER;
720
cp.
Style
|= NativeMethods.LVS_NOSORTHEADER;
725
cp.
Style
|= NativeMethods.LVS_EDITLABELS;
728
cp.
Style
|= NativeMethods.LVS_NOLABELWRAP;
731
cp.
Style
|= NativeMethods.LVS_SHOWSELALWAYS;
734
cp.
Style
|= NativeMethods.LVS_SINGLESEL;
739
cp.
Style
|= NativeMethods.LVS_SORTASCENDING;
742
cp.
Style
|= NativeMethods.LVS_SORTDESCENDING;
748
cp.
Style
|= NativeMethods.LVS_OWNERDATA;
754
cp.
Style
|= (int)viewStyle;
winforms\Managed\System\WinForms\MaskedTextBox.cs (3)
355
cp.
Style
|= NativeMethods.ES_LEFT;
358
cp.
Style
|= NativeMethods.ES_CENTER;
361
cp.
Style
|= NativeMethods.ES_RIGHT;
winforms\Managed\System\WinForms\MDIClient.cs (2)
118
cp.
Style
|= NativeMethods.WS_VSCROLL | NativeMethods.WS_HSCROLL;
123
cp.
Style
|= NativeMethods.WS_DISABLED;
winforms\Managed\System\WinForms\MonthCalendar.cs (4)
441
cp.
Style
|= NativeMethods.MCS_MULTISELECT | NativeMethods.MCS_DAYSTATE;
442
if (!showToday) cp.
Style
|= NativeMethods.MCS_NOTODAY;
443
if (!showTodayCircle) cp.
Style
|= NativeMethods.MCS_NOTODAYCIRCLE;
444
if (showWeekNumbers) cp.
Style
|= NativeMethods.MCS_WEEKNUMBERS;
winforms\Managed\System\WinForms\Panel.cs (2)
166
cp.
Style
&= (~NativeMethods.WS_BORDER);
173
cp.
Style
|= NativeMethods.WS_BORDER;
winforms\Managed\System\WinForms\PictureBox.cs (1)
251
cp.
Style
|= NativeMethods.WS_BORDER;
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
172
cp.
Style
|= NativeMethods.WS_HSCROLL;
173
cp.
Style
|= NativeMethods.WS_VSCROLL;
winforms\Managed\System\WinForms\ProgressBar.cs (2)
96
cp.
Style
|= NativeMethods.PBS_SMOOTH;
99
cp.
Style
|= NativeMethods.PBS_MARQUEE;
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
114
cp.
Style
|= (NativeMethods.TTS_ALWAYSTIP | NativeMethods.TTS_NOPREFIX);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
5498
cp.
Style
|= NativeMethods.WS_POPUP | NativeMethods.WS_BORDER;
6151
cp.
Style
&= ~NativeMethods.WS_BORDER;
winforms\Managed\System\WinForms\RadioButton.cs (4)
268
cp.
Style
|= NativeMethods.BS_OWNERDRAW;
271
cp.
Style
|= NativeMethods.BS_RADIOBUTTON;
273
cp.
Style
|= NativeMethods.BS_PUSHLIKE;
280
cp.
Style
|= NativeMethods.BS_RIGHTBUTTON;
winforms\Managed\System\WinForms\RichTextBox.cs (5)
408
cp.
Style
|= NativeMethods.WS_HSCROLL;
410
cp.
Style
|= RichTextBoxConstants.ES_DISABLENOSCROLL;
414
cp.
Style
|= NativeMethods.WS_VSCROLL;
416
cp.
Style
|= RichTextBoxConstants.ES_DISABLENOSCROLL;
423
cp.
Style
&= (~NativeMethods.WS_BORDER);
winforms\Managed\System\WinForms\ScrollableControl.cs (4)
236
cp.
Style
|= NativeMethods.WS_HSCROLL;
239
cp.
Style
&= (~NativeMethods.WS_HSCROLL);
242
cp.
Style
|= NativeMethods.WS_VSCROLL;
245
cp.
Style
&= (~NativeMethods.WS_VSCROLL);
winforms\Managed\System\WinForms\ScrollBar.cs (1)
195
cp.
Style
&= (~NativeMethods.WS_BORDER);
winforms\Managed\System\WinForms\Splitter.cs (2)
277
cp.
Style
&= (~NativeMethods.WS_BORDER);
284
cp.
Style
|= NativeMethods.WS_BORDER;
winforms\Managed\System\WinForms\StatusBar.cs (4)
225
cp.
Style
|= NativeMethods.SBARS_SIZEGRIP;
228
cp.
Style
&= (~NativeMethods.SBARS_SIZEGRIP);
230
cp.
Style
|= NativeMethods.CCS_NOPARENTALIGN | NativeMethods.CCS_NORESIZE;
1685
cp.
Style
|= NativeMethods.TTS_ALWAYSTIP;
winforms\Managed\System\WinForms\TabControl.cs (12)
348
if (Multiline == true) cp.
Style
|= NativeMethods.TCS_MULTILINE;
349
if (drawMode == TabDrawMode.OwnerDrawFixed) cp.
Style
|= NativeMethods.TCS_OWNERDRAWFIXED;
351
cp.
Style
|= NativeMethods.TCS_TOOLTIPS;
356
cp.
Style
|= NativeMethods.TCS_BOTTOM;
360
cp.
Style
|= NativeMethods.TCS_VERTICAL | NativeMethods.TCS_MULTILINE;
363
cp.
Style
|= NativeMethods.TCS_HOTTRACK;
367
cp.
Style
|= NativeMethods.TCS_TABS;
369
cp.
Style
|= NativeMethods.TCS_BUTTONS;
371
cp.
Style
|= NativeMethods.TCS_FLATBUTTONS;
376
cp.
Style
|= NativeMethods.TCS_RAGGEDRIGHT;
379
cp.
Style
|= NativeMethods.TCS_RIGHTJUSTIFY;
382
cp.
Style
|= NativeMethods.TCS_FIXEDWIDTH;
winforms\Managed\System\WinForms\TextBox.cs (8)
325
cp.
Style
|= NativeMethods.ES_LOWERCASE;
328
cp.
Style
|= NativeMethods.ES_UPPERCASE;
338
cp.
Style
|= NativeMethods.ES_LEFT;
341
cp.
Style
|= NativeMethods.ES_CENTER;
344
cp.
Style
|= NativeMethods.ES_RIGHT;
353
cp.
Style
|= NativeMethods.WS_HSCROLL;
356
cp.
Style
|= NativeMethods.WS_VSCROLL;
361
cp.
Style
|= NativeMethods.ES_PASSWORD;
winforms\Managed\System\WinForms\TextBoxBase.cs (7)
492
cp.
Style
|= NativeMethods.ES_AUTOHSCROLL | NativeMethods.ES_AUTOVSCROLL;
493
if (!textBoxFlags[hideSelection]) cp.
Style
|= NativeMethods.ES_NOHIDESEL;
494
if (textBoxFlags[readOnly]) cp.
Style
|= NativeMethods.ES_READONLY;
496
cp.
Style
&= (~NativeMethods.WS_BORDER);
503
cp.
Style
|= NativeMethods.WS_BORDER;
507
cp.
Style
|= NativeMethods.ES_MULTILINE;
508
if (textBoxFlags[wordWrap]) cp.
Style
&= ~NativeMethods.ES_AUTOHSCROLL;
winforms\Managed\System\WinForms\Timer.cs (1)
324
cp.
Style
= 0;
winforms\Managed\System\WinForms\ToolBar.cs (8)
427
cp.
Style
|= NativeMethods.CCS_NOPARENTALIGN
431
if (!Divider) cp.
Style
|= NativeMethods.CCS_NODIVIDER ;
432
if (Wrappable) cp.
Style
|= NativeMethods.TBSTYLE_WRAPPABLE;
433
if (ShowToolTips && !DesignMode) cp.
Style
|= NativeMethods.TBSTYLE_TOOLTIPS;
436
cp.
Style
&= (~NativeMethods.WS_BORDER);
442
cp.
Style
|= NativeMethods.WS_BORDER;
450
cp.
Style
|= NativeMethods.TBSTYLE_FLAT;
458
cp.
Style
|= NativeMethods.TBSTYLE_LIST;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (3)
331
cp.
Style
&= ~(NativeMethods.WS_CAPTION | NativeMethods.WS_CLIPSIBLINGS); /* no caption, no siblings */
334
cp.
Style
|= (TopLevel) ? NativeMethods.WS_POPUP : NativeMethods.WS_CHILD;
352
cp.
Style
|= NativeMethods.WS_CLIPSIBLINGS;
winforms\Managed\System\WinForms\ToolTip.cs (5)
247
cp.
Style
= NativeMethods.TTS_ALWAYSTIP;
250
cp.
Style
|= NativeMethods.TTS_BALLOON;
253
cp.
Style
|= NativeMethods.TTS_NOPREFIX;
256
cp.
Style
|= NativeMethods.TTS_NOANIMATE;
259
cp.
Style
|= NativeMethods.TTS_NOFADE;
winforms\Managed\System\WinForms\TrackBar.cs (5)
206
cp.
Style
|= NativeMethods.TBS_NOTICKS;
209
cp.
Style
|= (NativeMethods.TBS_AUTOTICKS | NativeMethods.TBS_TOP);
212
cp.
Style
|= (NativeMethods.TBS_AUTOTICKS | NativeMethods.TBS_BOTTOM);
215
cp.
Style
|= (NativeMethods.TBS_AUTOTICKS | NativeMethods.TBS_BOTH);
220
cp.
Style
|= NativeMethods.TBS_VERT; // HORIZ == 0
winforms\Managed\System\WinForms\TreeView.cs (14)
359
cp.
Style
|= (currentStyle & (NativeMethods.WS_HSCROLL | NativeMethods.WS_VSCROLL));
366
cp.
Style
|= NativeMethods.WS_BORDER;
371
cp.
Style
|= NativeMethods.LVS_NOSCROLL;
374
cp.
Style
|= NativeMethods.TVS_SHOWSELALWAYS;
376
cp.
Style
|= NativeMethods.TVS_EDITLABELS;
378
cp.
Style
|= NativeMethods.TVS_HASLINES;
380
cp.
Style
|= NativeMethods.TVS_HASBUTTONS;
382
cp.
Style
|= NativeMethods.TVS_LINESATROOT;
384
cp.
Style
|= NativeMethods.TVS_TRACKSELECT;
386
cp.
Style
|= NativeMethods.TVS_FULLROWSELECT;
388
cp.
Style
|= NativeMethods.TVS_NONEVENHEIGHT;
394
cp.
Style
|= NativeMethods.TVS_INFOTIP;
401
cp.
Style
|= NativeMethods.TVS_CHECKBOXES;
413
cp.
Style
|= NativeMethods.TVS_RTLREADING;
winforms\Managed\System\WinForms\UpDownBase.cs (2)
358
cp.
Style
&= (~NativeMethods.WS_BORDER);
365
cp.
Style
|= NativeMethods.WS_BORDER;
winforms\Managed\System\WinForms\UserControl.cs (2)
203
cp.
Style
&= (~NativeMethods.WS_BORDER);
210
cp.
Style
|= NativeMethods.WS_BORDER;
winforms\Managed\System\WinForms\VScrollBar.cs (1)
47
cp.
Style
|= NativeMethods.SBS_VERT;
System.Workflow.ComponentModel (1)
AuthoringOM\Design\DesignerWidgets.cs (1)
2287
createParams.
Style
= NativeMethods.WS_POPUP | NativeMethods.TTS_ALWAYSTIP | NativeMethods.TTS_NOPREFIX;
18 references to Style
System.Windows.Forms (18)
winforms\Managed\System\WinForms\AxHost.cs (1)
316
cp.Style = cp.
Style
& (~NativeMethods.WS_VISIBLE);
winforms\Managed\System\WinForms\Control.cs (8)
546
AdjustWindowRectEx(ref rect, cp.
Style
, false, cp.ExStyle);
5820
if (cp.Parent == IntPtr.Zero && (cp.
Style
& NativeMethods.WS_CHILD) != 0) {
6589
AdjustWindowRectEx(ref adornments, cp.
Style
, HasMenu, cp.ExStyle);
11484
AdjustWindowRectEx(ref adornments, cp.
Style
, HasMenu, cp.ExStyle);
11956
AdjustWindowRectEx(ref rect, cp.
Style
, HasMenu, cp.ExStyle);
12544
AdjustWindowRectEx(ref rect, cp.
Style
, false, cp.ExStyle);
12747
if (winStyle != cp.
Style
) {
12748
WindowStyle = cp.
Style
;
winforms\Managed\System\WinForms\Form.cs (3)
1061
if ((cp.
Style
& NativeMethods.WS_VISIBLE) != 0) {
3585
return ComputeWindowSize(clientSize, cp.
Style
, cp.ExStyle);
3988
int maskedStyle = cp.
Style
& ~(NativeMethods.WS_MAXIMIZE | NativeMethods.WS_MINIMIZE);
winforms\Managed\System\WinForms\MDIClient.cs (1)
295
AdjustWindowRectEx(ref rect, cp.
Style
, false, cp.ExStyle);
winforms\Managed\System\WinForms\NativeWindow.cs (2)
714
if ((cp.
Style
& NativeMethods.WS_CHILD) != NativeMethods.WS_CHILD
764
cp.Caption, cp.
Style
, cp.X, cp.Y, cp.Width, cp.Height, new HandleRef(cp, cp.Parent), NativeMethods.NullHandleRef,
winforms\Managed\System\WinForms\RichTextBox.cs (1)
422
if (BorderStyle.FixedSingle == BorderStyle && ((cp.
Style
& NativeMethods.WS_BORDER) != 0)) {
winforms\Managed\System\WinForms\ScrollBar.cs (1)
66
if ((this.CreateParams.
Style
& NativeMethods.SBS_VERT) != 0)
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
641
AdjustWindowRectEx(ref rect, cp.
Style
, HasMenu, cp.ExStyle);