50 references to Host
System.Windows.Forms (50)
winforms\Managed\System\WinForms\WebBrowser.cs (4)
1718
WebBrowser wb = (WebBrowser)this.
Host
;
1740
WebBrowser wb = (WebBrowser)this.
Host
;
1826
WebBrowser wb = (WebBrowser)this.
Host
;
1839
WebBrowser wb = (WebBrowser)this.
Host
;
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (46)
168
Debug.Assert(!this.
Host
.GetAXHostState(WebBrowserHelper.siteProcessedInputKey), "Re-entering UnsafeNativeMethods.IOleControlSite.TranslateAccelerator!!!");
169
this.
Host
.SetAXHostState(WebBrowserHelper.siteProcessedInputKey, true);
178
bool f = ((Control)this.
Host
).PreProcessControlMessage(ref msg) == PreProcessControlState.MessageProcessed;
182
this.
Host
.SetAXHostState(WebBrowserHelper.siteProcessedInputKey, false);
217
container = this.
Host
.GetParentContainer();
225
if (this.
Host
.ActiveXState >= WebBrowserHelper.AXState.InPlaceActive) {
227
if (NativeMethods.Succeeded(this.
Host
.AXInPlaceObject.GetWindow(out hwnd))) {
228
if (this.
Host
.GetHandleNoCreate() != hwnd) {
230
this.
Host
.AttachWindow(hwnd);
231
this.OnActiveXRectChange(new NativeMethods.COMRECT(this.
Host
.Bounds));
235
else if (this.
Host
.AXInPlaceObject is UnsafeNativeMethods.IOleInPlaceObjectWindowless) {
262
return UnsafeNativeMethods.GetParent(new HandleRef(
Host
,
Host
.Handle));
286
this.
Host
.ActiveXState = WebBrowserHelper.AXState.InPlaceActive;
287
this.OnActiveXRectChange(new NativeMethods.COMRECT(this.
Host
.Bounds));
294
this.
Host
.ActiveXState = WebBrowserHelper.AXState.UIActive;
295
this.
Host
.GetParentContainer().OnUIActivate(this.
Host
);
304
ppFrame = this.
Host
.GetParentContainer();
306
lprcPosRect.left = this.
Host
.Bounds.X;
307
lprcPosRect.top = this.
Host
.Bounds.Y;
308
lprcPosRect.right = this.
Host
.Bounds.Width + this.
Host
.Bounds.X;
309
lprcPosRect.bottom = this.
Host
.Bounds.Height + this.
Host
.Bounds.Y;
317
lpFrameInfo.hwndFrame = (this.
Host
.ParentInternal == null) ? IntPtr.Zero : this.
Host
.ParentInternal.Handle;
331
this.
Host
.GetParentContainer().OnUIDeactivate(this.
Host
);
332
if (this.
Host
.ActiveXState > WebBrowserHelper.AXState.InPlaceActive) {
333
this.
Host
.ActiveXState = WebBrowserHelper.AXState.InPlaceActive;
341
if (this.
Host
.ActiveXState == WebBrowserHelper.AXState.UIActive) {
345
this.
Host
.GetParentContainer().OnInPlaceDeactivate(this.
Host
);
346
this.
Host
.ActiveXState = WebBrowserHelper.AXState.Running;
359
return this.
Host
.AXInPlaceObject.UIDeactivate();
392
if (this.
Host
.NoComponentChangeEvents != 0)
395
this.
Host
.NoComponentChangeEvents++;
406
this.
Host
.NoComponentChangeEvents--;
423
ISite site = this.
Host
.Site;
432
changeService.OnComponentChanging(this.
Host
, null);
445
changeService.OnComponentChanged(this.
Host
, null, null, null);
461
return this.
Host
;
468
Object nativeObject = this.
Host
.activeXInstance;
492
this.
Host
.AXInPlaceObject.SetObjectRects(
495
this.
Host
.MakeDirty();