26 references to DrawFocusRectangle
System.Windows.Forms (26)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
543ControlPaint.DrawFocusRectangle(g, r, Control.ForeColor, Control.BackColor);
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
840ControlPaint.DrawFocusRectangle(e.Graphics, textBounds, foreColor, backColor); 860ControlPaint.DrawFocusRectangle(e.Graphics, emptyRectangle, foreColor, backColor);
winforms\Managed\System\WinForms\ControlPaint.cs (1)
1313DrawFocusRectangle(graphics, rectangle, SystemColors.ControlText, SystemColors.Control);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
734ControlPaint.DrawFocusRectangle(g, textBounds, ((SolidBrush)textBrush).Color, ((SolidBrush)GetBackBrush()).Color);
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (2)
944ControlPaint.DrawFocusRectangle(g, Rectangle.Inflate(valBounds, -1, -1), Color.Empty, SystemColors.Control); 1002ControlPaint.DrawFocusRectangle(g,
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1246ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, br.Color);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (3)
2548ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, br.Color); 2559ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, br.Color); 2564ControlPaint.DrawFocusRectangle(g, textBounds, Color.Empty, br.Color);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
952ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, br.Color);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (3)
1084ControlPaint.DrawFocusRectangle(g, focusBounds, Color.Empty, br.Color); 1121ControlPaint.DrawFocusRectangle(g, errorBounds, Color.Empty, br.Color); 1147ControlPaint.DrawFocusRectangle(g, valBounds, Color.Empty, br.Color);
winforms\Managed\System\WinForms\DataGridViewRow.cs (1)
1300ControlPaint.DrawFocusRectangle(graphics, bounds, Color.Empty, backColor);
winforms\Managed\System\WinForms\DataGridViewTextBoxCell.cs (1)
745ControlPaint.DrawFocusRectangle(graphics, valBounds, Color.Empty, br.Color);
winforms\Managed\System\WinForms\DrawItemEvent.cs (1)
198ControlPaint.DrawFocusRectangle(Graphics, rect, ForeColor, BackColor);
winforms\Managed\System\WinForms\DrawListViewItemEventArgs.cs (1)
141ControlPaint.DrawFocusRectangle(graphics, UpdateBounds(focusBounds, false /*drawText*/), item.ForeColor, item.BackColor);
winforms\Managed\System\WinForms\DrawListViewSubItemEventArgs.cs (1)
185ControlPaint.DrawFocusRectangle(graphics, Rectangle.Inflate(bounds, -1, -1), item.ForeColor, item.BackColor);
winforms\Managed\System\WinForms\LinkLabel.cs (2)
1461ControlPaint.DrawFocusRectangle(g, focusRect, ForeColor, BackColor); 1465ControlPaint.DrawFocusRectangle(g, Rectangle.Ceiling(rect), ForeColor, BackColor);
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
219ControlPaint.DrawFocusRectangle(g, focusRect, SystemColors.ControlText, OwnerGrid.LineColor);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
114ControlPaint.DrawFocusRectangle(pevent.Graphics, dropDownButtonRect, ForeColor, BackColor);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1623ControlPaint.DrawFocusRectangle(g, r, this.ForeColor, this.BackColor);
winforms\Managed\System\WinForms\TreeView.cs (1)
2844 ControlPaint.DrawFocusRectangle(g, bounds, color, SystemColors.Highlight);