10 references to FromHwnd
System.Drawing.Common.Tests (2)
System\Drawing\GraphicsTests.cs (2)
217
using Graphics graphics = Graphics.
FromHwnd
(hwnd);
226
using Graphics graphics = Graphics.
FromHwnd
(hwnd);
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
37
using Graphics graphics = Graphics.
FromHwnd
(_owningLink.Owner.Handle);
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
309
using Graphics g = Graphics.
FromHwnd
(m.HWnd);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2065
using Graphics graphics = Graphics.
FromHwnd
(m.HWnd);
System.Windows.Forms.Tests (5)
System\Windows\Forms\ComboBoxTests.cs (5)
336
control.TriggerMeasureItem(new MeasureItemEventArgs(Graphics.
FromHwnd
(IntPtr.Zero), 0, 0));
341
control.TriggerMeasureItem(new MeasureItemEventArgs(Graphics.
FromHwnd
(IntPtr.Zero), 0, 0));
360
comboBox.TestAccessor().Dynamic.OnPaint(new PaintEventArgs(Graphics.
FromHwnd
(comboBox.Handle), default));
373
comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.
FromHwnd
(comboBox.Handle), default));
377
comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.
FromHwnd
(comboBox.Handle), default));