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