private void Form1_Load(object sender, EventArgs e) { WebBrowserMain.Navigate(local.host); #region alt+tab ProcessModule objCurrentModule = Process.GetCurrentProcess().MainModule; objKeyboardProcess = new LowLevelKeyboardProc(captureKey); ptrHook = SetWindowsHookEx(13, objKeyboardProcess, GetModuleHandle(objCurrentModule.ModuleName), 0); #endregion }
private void WebBrowserForm_Load(object sender, EventArgs e) { //comments on button when mouse is on it toolTip1.ShowAlways = true; toolTip1.SetToolTip(btnBack, "Go back"); toolTip1.SetToolTip(btnForward, "Go forward"); toolTip1.SetToolTip(btnHomePage, "Go to your home page"); toolTip1.SetToolTip(btnLoginRegister, "If you login to an account you can use Bookmarks functionality!"); toolTip1.SetToolTip(btnNewTab, "Add a new tab to your browser\nIf you want to remove tab just double click on the tab!"); toolTip1.SetToolTip(btnRefresh, "Refresh page"); toolTip1.SetToolTip(btnSearch, "Search with URL"); WebBrowserMain.Navigate(homePage); WebBrowserMain.DocumentCompleted += WebBrowserMain_DocumentCompleted; cbBookmarks.Enabled = false; btnAddFavorite.Enabled = false; btnLoginRegister.ForeColor = Color.Green; }
private void ListBoxFeedItems_SelectedIndexChanged(object sender, EventArgs e) { WebBrowserMain.Navigate(Links[ListBoxFeedItems.SelectedIndex]); LabelPageTitle.Text = ListBoxFeedItems.Items[ListBoxFeedItems.SelectedIndex].ToString(); }
public InternalBrowserPage(Uri source) { InitializeComponent(); WebBrowserMain.Navigate(source); }
private void ButtonNavigate_Click(object sender, RoutedEventArgs e) { WebBrowserMain.Navigate(TextBoxUrl.Text); }
public WebBrowserPage(string uri) { InitializeComponent(); nowuri = new Uri(uri); WebBrowserMain.Navigate(nowuri); }