public void RichTextBoxIPInfo_MouseHover(object sender, EventArgs e) { Form2 = new FloatingInfo(); Form2.Location = new Point(Cursor.Position.X + Distance, Cursor.Position.Y + Distance); Form2.MyIPInfo = MyIPInfo; Form2.Show(); }
private void ListViewProxyList_ItemMouseHover(object sender, ListViewItemMouseHoverEventArgs e) { try { Distance = 1; if (Form2 != null) { Form2.Close(); } Form2 = new FloatingInfo(); Form2.Location = new Point(Cursor.Position.X + Distance, Cursor.Position.Y + Distance); IPAddress.TryParse(e.Item.SubItems[0].Text, out Form2.MyIPInfo.IP); Form2.MyIPInfo.ISP = e.Item.SubItems[10].Text; Form2.MyIPInfo.Organization = e.Item.SubItems[11].Text; Form2.MyIPInfo.Latitude = float.Parse(e.Item.SubItems[8].Text.Split(',')[0], CultureInfo.InvariantCulture.NumberFormat); Form2.MyIPInfo.Longitude = float.Parse(e.Item.SubItems[8].Text.Split(',')[1], CultureInfo.InvariantCulture.NumberFormat); Form2.Show(); } catch { } }