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