43 references to Host
System.Windows.Forms (43)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (4)
32WebBrowser wb = (WebBrowser)Host; 66WebBrowser wb = (WebBrowser)Host; 148WebBrowser wb = (WebBrowser)Host; 162WebBrowser wb = (WebBrowser)Host;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
114control = webBrowserSiteBase.Host;
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (38)
140Debug.Assert(!Host.GetAXHostState(WebBrowserHelper.s_siteProcessedInputKey), "Re-entering IOleControlSite.TranslateAccelerator!!!"); 141Host.SetAXHostState(WebBrowserHelper.s_siteProcessedInputKey, true); 146bool f = Host.PreProcessControlMessage(ref msg) == PreProcessControlState.MessageProcessed; 151Host.SetAXHostState(WebBrowserHelper.s_siteProcessedInputKey, false); 180*ppContainer = ComHelpers.GetComPointer<IOleContainer>(Host.GetParentContainer()); 186if (Host.ActiveXState >= WebBrowserHelper.AXState.InPlaceActive) 189if (Host.AXInPlaceObject!.GetWindow(&hwnd).Succeeded) 191if (Host.GetHandleNoCreate() != hwnd) 195Host.AttachWindow(hwnd); 196RECT posRect = Host.Bounds; 201else if (Host.AXInPlaceObject is IOleInPlaceObjectWindowless.Interface) 222*phwnd = PInvoke.GetParent(Host); 232Host.ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 233RECT posRect = Host.Bounds; 240Host.ActiveXState = WebBrowserHelper.AXState.UIActive; 241Host.GetParentContainer().OnUIActivate(Host); 262*ppFrame = ComHelpers.GetComPointer<IOleInPlaceFrame>(Host.GetParentContainer()); 264*lprcPosRect = Host.Bounds; 272lpFrameInfo->hwndFrame = Host.ParentInternal is { } parent ? parent.HWND : HWND.Null; 282Host.GetParentContainer().OnUIDeactivate(Host); 283if (Host.ActiveXState > WebBrowserHelper.AXState.InPlaceActive) 285Host.ActiveXState = WebBrowserHelper.AXState.InPlaceActive; 293if (Host.ActiveXState == WebBrowserHelper.AXState.UIActive) 298Host.GetParentContainer().OnInPlaceDeactivate(Host); 299Host.ActiveXState = WebBrowserHelper.AXState.Running; 305HRESULT IOleInPlaceSite.Interface.DeactivateAndUndo() => Host.AXInPlaceObject!.UIDeactivate(); 331if (Host.NoComponentChangeEvents != 0) 336Host.NoComponentChangeEvents++; 348Host.NoComponentChangeEvents--; 358if (Host.Site.TryGetService(out IComponentChangeService? changeService)) 362changeService.OnComponentChanging(Host); 363changeService.OnComponentChanged(Host); 379object? nativeObject = Host._activeXInstance; 417Host.AXInPlaceObject!.SetObjectRects(&posRect, &clipRect); 418Host.MakeDirty();