this.RecentPostBrowser.Url = new System.Uri("about:blank", System.UriKind.Absolute);
this.RecentPostBrowser.WebBrowserShortcutsEnabled = false;
this.RecentPostBrowser.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.WebBrowser_Navigating);
- this.RecentPostBrowser.StatusTextChanged += new System.EventHandler(this.WebBrowser_StatusTextChanged);
//
// ChangeIconToolStripMenuItem
//
this.DescriptionBrowser.Url = new System.Uri("about:blank", System.UriKind.Absolute);
this.DescriptionBrowser.WebBrowserShortcutsEnabled = false;
this.DescriptionBrowser.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.WebBrowser_Navigating);
- this.DescriptionBrowser.StatusTextChanged += new System.EventHandler(this.WebBrowser_StatusTextChanged);
//
// LabelScreenName
//
this.Shown += new System.EventHandler(this.ShowUserInfo_Shown);
this.DragDrop += new System.Windows.Forms.DragEventHandler(this.ShowUserInfo_DragDrop);
this.DragOver += new System.Windows.Forms.DragEventHandler(this.ShowUserInfo_DragOver);
- this.MouseEnter += new System.EventHandler(this.ShowUserInfo_MouseEnter);
this.ContextMenuRecentPostBrowser.ResumeLayout(false);
this.ContextMenuUserPicture.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.UserPicture)).EndInit();
}
}
- private void WebBrowser_StatusTextChanged(object sender, EventArgs e)
- {
- var browser = (WebBrowser)sender;
- if (browser.StatusText.StartsWith("http"))
- {
- ToolTip1.Show(browser.StatusText, this, PointToClient(MousePosition));
- }
- else if (string.IsNullOrEmpty(DescriptionBrowser.StatusText))
- {
- ToolTip1.Hide(this);
- }
- }
-
private void SelectAllToolStripMenuItem_Click(object sender, EventArgs e)
{
var browser = (WebBrowser)this.ContextMenuRecentPostBrowser.SourceControl;
this.SelectionCopyToolStripMenuItem.Enabled = selectedText != null;
}
- private void ShowUserInfo_MouseEnter(object sender, EventArgs e)
- {
- ToolTip1.Hide(this);
- }
-
private void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.Owner.OpenUriAsync("https://support.twitter.com/groups/31-twitter-basics/topics/111-features/articles/268350-x8a8d-x8a3c-x6e08-x307f-x30a2-x30ab-x30a6-x30f3-x30c8-x306b-x3064-x3044-x3066");