Example #1
0
 internal void LoadHtml(string html)
 {
     if (_loadHtmlMethod == null)
     {
         _loadHtmlMethod = BrowserType.GetMethod("LoadHtml", new Type[] { typeof(String) });
     }
     _loadHtmlMethod.Invoke(_webBrowser, new object[] { html });
 }
Example #2
0
 internal bool HasInputFocus()
 {
     if (_hasInputFocusMethod == null)
     {
         _hasInputFocusMethod = BrowserType.GetMethod("HasInputFocus");
     }
     return((bool)_hasInputFocusMethod.Invoke(_webBrowser, null));
 }
Example #3
0
 internal void RemoveInputFocus()
 {
     if (_removeInputFocusMethod == null)
     {
         _removeInputFocusMethod = BrowserType.GetMethod("RemoveInputFocus");
     }
     _removeInputFocusMethod.Invoke(_webBrowser, null);
 }
Example #4
0
 internal void SetInputFocus()
 {
     if (_setInputFocusMethod == null)
     {
         _setInputFocusMethod = BrowserType.GetMethod("SetInputFocus");
     }
     _setInputFocusMethod.Invoke(_webBrowser, null);
 }
Example #5
0
 internal bool Focus()
 {
     if (_focusMethod == null)
     {
         _focusMethod = BrowserType.GetMethod("Focus");
     }
     return((bool)_focusMethod.Invoke(_webBrowser, null));
 }
Example #6
0
 internal void Dispose()
 {
     if (_disposeMethod == null)
     {
         _disposeMethod = BrowserType.GetMethod("Dispose");
     }
     _disposeMethod.Invoke(_webBrowser, null);
 }