Implemented interface member:
property
Handle
System.Windows.Forms.IWin32Window.Handle
125 references to Handle
System.Windows.Forms (111)
winforms\Managed\System\WinForms\ComboBox.cs (41)
379
childEditAccessibleObject = new ComboBoxChildEditUiaProvider(this, childEdit.
Handle
);
390
new ComboBoxChildListUiaProvider(this, DropDownStyle == ComboBoxStyle.Simple ? childListBox.
Handle
: dropDownHandle);
655
return focus != IntPtr.Zero && ((childEdit != null && focus == childEdit.
Handle
) || (childListBox != null && focus == childListBox.
Handle
));
1132
UnsafeNativeMethods.SendMessage(new HandleRef(this, childEdit.
Handle
), NativeMethods.EM_REPLACESEL, NativeMethods.InvalidIntPtr, str);
1613
UnsafeNativeMethods.GetWindowRect(new HandleRef(this, childEdit.
Handle
), ref editRectMid);
1633
if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == childListBox.
Handle
) {
1646
if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == childListBox.
Handle
) {
1676
if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == childListBox.
Handle
) {
1695
if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == childListBox.
Handle
) {
1755
if (!DesignMode && (childEdit != null && m.HWnd == childEdit.
Handle
) && !LocalAppContextSwitches.EnableLegacyIMEFocusInComboBox) {
1768
if (childEdit != null && m.HWnd == childEdit.
Handle
) {
1769
UnsafeNativeMethods.SendMessage(new HandleRef(this, childEdit.
Handle
), NativeMethods.EM_SETMARGINS,
1947
if (Cursor != DefaultCursor && childEdit != null && m.HWnd == childEdit.
Handle
&& NativeMethods.Util.LOWORD(m.LParam) == NativeMethods.HTCLIENT) {
1998
if (m.HWnd == childEdit.
Handle
) {
2048
if (childEdit != null && childEdit.
Handle
!= IntPtr.Zero) {
2049
SafeNativeMethods.InvalidateRect(new HandleRef(this, childEdit.
Handle
), null, false);
2051
if (childListBox != null && childListBox.
Handle
!= IntPtr.Zero) {
2052
SafeNativeMethods.InvalidateRect(new HandleRef(this, childListBox.
Handle
), null, false);
2188
return DropDownStyle == ComboBoxStyle.Simple ? childListBox.
Handle
: dropDownHandle;
2459
UnsafeNativeMethods.SendMessage(new HandleRef(this, childEdit.
Handle
), NativeMethods.EM_SETMARGINS,
3097
ReleaseUiaProvider(childListBox.
Handle
);
3108
ReleaseUiaProvider(childDropDown.
Handle
);
3165
SafeNativeMethods.SHAutoComplete(new HandleRef(this, childEdit.
Handle
), mode);
3172
if (!stringSource.Bind(new HandleRef(this, childEdit.
Handle
), (int)AutoCompleteMode)) {
3189
SafeNativeMethods.SHAutoComplete(new HandleRef(this, childEdit.
Handle
), mode);
3196
if (!stringSource.Bind(new HandleRef(this, childEdit.
Handle
), (int)AutoCompleteMode)) {
3212
SafeNativeMethods.SHAutoComplete(new HandleRef(this, childEdit.
Handle
), mode);
3229
int ret = SafeNativeMethods.SHAutoComplete(new HandleRef(this, childEdit.
Handle
), (int)AutoCompleteSource | mode);
3239
SafeNativeMethods.SHAutoComplete(new HandleRef(this, childEdit.
Handle
), mode);
3442
if (childEdit != null && childEdit.
Handle
!= IntPtr.Zero) {
3443
UnsafeNativeMethods.SendMessage(new HandleRef(this, childEdit.
Handle
), NativeMethods.WM_SETTEXT, IntPtr.Zero, s);
3487
ReleaseUiaProvider(childListBox.
Handle
);
3915
return new ChildAccessibleObject(_owner,
Handle
);
3940
new HandleRef(this,
Handle
),
3968
: new ChildAccessibleObject(_owner,
Handle
);
4915
if (hwnd == _owningComboBox.childEdit.
Handle
) {
4919
hwnd == _owningComboBox.childListBox.
Handle
||
5782
return SafeNativeMethods.IsWindowVisible(new HandleRef(this,
Handle
));
5811
Debug.Assert(ACWindows.ContainsKey(this.
Handle
));
5812
ACWindows.Remove(this.
Handle
); //so we do not leak ac windows.
winforms\Managed\System\WinForms\CommonDialog.cs (1)
290
hwndOwner = native.
Handle
;
winforms\Managed\System\WinForms\Control.cs (3)
2874
return window.
Handle
;
2971
get { return window.
Handle
!= IntPtr.Zero; }
14578
target.OnHandleChange(this.
Handle
);
winforms\Managed\System\WinForms\DataGridToolTip.cs (7)
36
if (tipWindow == null || tipWindow.
Handle
== IntPtr.Zero)
49
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
50
SafeNativeMethods.SetWindowPos(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.HWND_NOTOPMOST, 0, 0, 0, 0, NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOMOVE | NativeMethods.SWP_NOACTIVATE);
51
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_SETDELAYTIME, NativeMethods.TTDT_INITIAL, 0);
59
Debug.Assert(tipWindow != null && tipWindow.
Handle
!= IntPtr.Zero, "the tipWindow was not initialized, bailing out");
73
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_ADDTOOL, 0, toolInfo);
82
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_DELTOOL, 0, toolInfo);
winforms\Managed\System\WinForms\ErrorProvider.cs (18)
919
toolInfo.hwnd =
Handle
;
923
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_ADDTOOL, 0, toolInfo);
941
if (
Handle
== IntPtr.Zero) {
963
cparams.Parent =
Handle
;
969
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
970
SafeNativeMethods.SetWindowPos(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.HWND_TOP, 0, 0, 0, 0, NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOMOVE | NativeMethods.SWP_NOACTIVATE);
971
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_SETDELAYTIME, NativeMethods.TTDT_INITIAL, 0);
994
SafeNativeMethods.SetWindowPos(new HandleRef(this,
Handle
),
1066
IntPtr hdc = UnsafeNativeMethods.BeginPaint(new HandleRef(this,
Handle
), ref ps);
1082
UnsafeNativeMethods.EndPaint(new HandleRef(this,
Handle
), ref ps);
1133
toolInfo.hwnd =
Handle
;
1135
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_DELTOOL, 0, toolInfo);
1223
toolInfo.hwnd =
Handle
;
1231
UnsafeNativeMethods.SendMessage(new HandleRef(tipWindow, tipWindow.
Handle
), NativeMethods.TTM_SETTOOLINFO, 0, toolInfo);
1244
dc = DeviceContext.FromHwnd(this.
Handle
);
1258
if (UnsafeNativeMethods.SetWindowRgn(new HandleRef(this,
Handle
), new HandleRef(windowRegion, windowRegionHandle), true) != 0) {
1278
SafeNativeMethods.SetWindowPos(new HandleRef(this,
Handle
), NativeMethods.HWND_TOP, windowBounds.X, windowBounds.Y,
1280
SafeNativeMethods.InvalidateRect(new HandleRef(this,
Handle
), null, false);
winforms\Managed\System\WinForms\Form.cs (15)
2515
if (ownerWindow.
Handle
== IntPtr.Zero) {
2521
return new HandleRef(ownerWindow, ownerWindow.
Handle
);
7835
if (window.
Handle
!= IntPtr.Zero) {
7879
SafeNativeMethods.SetWindowPos(new HandleRef(window, window.
Handle
), NativeMethods.HWND_TOPMOST,
7884
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_SETMAXTIPWIDTH, 0, owner.Width);
7886
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_SETTITLE, NativeMethods.TTI_WARNING, SR.GetString(SR.SecurityToolTipCaption));
7888
if (0 == (int)UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_ADDTOOL, 0, GetTOOLINFO())) {
7892
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_ACTIVATE, 1, 0);
7899
if (window.
Handle
!= IntPtr.Zero) {
7918
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.Width / 2, owner.Top + SystemInformation.CaptionHeight));
7930
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_TRACKACTIVATE, 0, GetTOOLINFO());
7931
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_DELTOOL, 0, GetTOOLINFO());
7932
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_ADDTOOL, 0, GetTOOLINFO());
7938
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(owner.Left + s.Width / 2, owner.Top + SystemInformation.CaptionHeight));
7939
UnsafeNativeMethods.SendMessage(new HandleRef(window, window.
Handle
), NativeMethods.TTM_TRACKACTIVATE, 1, GetTOOLINFO());
winforms\Managed\System\WinForms\NotifyIcon.cs (11)
484
if (window != null && window.
Handle
!= IntPtr.Zero) {
485
UnsafeNativeMethods.PostMessage(new HandleRef(window, window.
Handle
), NativeMethods.WM_CLOSE, 0, 0);
694
if (window.
Handle
== IntPtr.Zero) {
697
data.hWnd = window.
Handle
;
729
UnsafeNativeMethods.SetForegroundWindow(new HandleRef(window, window.
Handle
));
738
new HandleRef(window, window.
Handle
),
742
UnsafeNativeMethods.PostMessage(new HandleRef(window, window.
Handle
), NativeMethods.WM_NULL, IntPtr.Zero, IntPtr.Zero);
774
if (window.
Handle
== IntPtr.Zero) {
778
data.hWnd = window.
Handle
;
1005
if (
Handle
!= IntPtr.Zero) {
1006
UnsafeNativeMethods.PostMessage(new HandleRef(this,
Handle
), NativeMethods.WM_CLOSE, 0, 0);
winforms\Managed\System\WinForms\StatusBar.cs (3)
1697
if (window.
Handle
== IntPtr.Zero) {
1700
return window.
Handle
;
1705
get { return window.
Handle
!= IntPtr.Zero;}
winforms\Managed\System\WinForms\Timer.cs (8)
310
return _timerID != 0 &&
Handle
!= IntPtr.Zero;
318
if (
Handle
== IntPtr.Zero) {
338
Debug.Assert(
Handle
!= IntPtr.Zero, "Timer HWND creation failed!");
339
return
Handle
!= IntPtr.Zero;
367
_timerID = (int) SafeNativeMethods.SetTimer(new HandleRef(this,
Handle
), TimerID++, interval, IntPtr.Zero);
386
hWnd =
Handle
;
449
Debug.Assert(m.HWnd ==
Handle
&&
Handle
!= IntPtr.Zero, "Timer getting messages for other windows?");
winforms\Managed\System\WinForms\ToolStrip.cs (1)
793
if (dropDownOwnerWindow.
Handle
== IntPtr.Zero) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1679
HandleRef ownerHandle = new HandleRef(ownerWindow, ownerWindow.
Handle
);
winforms\Managed\System\WinForms\ToolTip.cs (2)
301
return window.
Handle
;
1125
return (window != null ? window.
Handle
!= IntPtr.Zero: false);
System.Workflow.ComponentModel (14)
AuthoringOM\Design\DesignerWidgets.cs (14)
2217
if (NativeMethods.IsWindowVisible(this.infoTip.
Handle
))
2245
if (NativeMethods.IsWindowVisible(this.inplaceTip.
Handle
))
2259
if (notifyHeader != null && notifyHeader.hwndFrom == this.inplaceTip.
Handle
&& notifyHeader.code == NativeMethods.TTN_SHOW)
2262
int result = NativeMethods.SetWindowPos(this.inplaceTip.
Handle
, IntPtr.Zero, screenCoOrd.X, screenCoOrd.Y, 0, 0, NativeMethods.SWP_NOSIZE | NativeMethods.SWP_NOZORDER | NativeMethods.SWP_NOACTIVATE);
2291
if (IntPtr.Zero ==
Handle
)
2319
IntPtr lresult = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_ACTIVATE, activateValue, IntPtr.Zero);
2325
IntPtr lresult = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_POP, IntPtr.Zero, IntPtr.Zero);
2330
IntPtr lresult = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_SETMAXTIPWIDTH, IntPtr.Zero, new IntPtr(tipWidth));
2335
IntPtr lresult = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_SETDELAYTIME, new IntPtr(time), new IntPtr(delay));
2344
IntPtr lresult = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_SETTITLE, new IntPtr((int)ToolTipIcon.None), titleStr);
2359
IntPtr lresult = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_UPDATETIPTEXT, IntPtr.Zero, ref toolInfo);
2375
IntPtr lresult = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_NEWTOOLRECT, IntPtr.Zero, ref toolInfo);
2380
IntPtr retVal = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_ADDTOOL, IntPtr.Zero, ref toolInfo);
2386
IntPtr lresult = NativeMethods.SendMessage(
Handle
, NativeMethods.TTM_DELTOOL, IntPtr.Zero, ref toolInfo);