private void toolStripMenuItem1_Click(object sender, EventArgs e) { var selectedItems = this.lvLastestUpdates.SelectedItems[0]; var col = selectedItems.ListView.Columns.Cast<ColumnHeader>().FirstOrDefault(p => p.Text == "ChapterUrl"); var value = selectedItems.SubItems[col.Index].Text; BrowserForm form = new BrowserForm(value); form.ShowDialog(this); }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { string url = ""; foreach (ListViewItem item in dataListView1.Items) { if (item.Selected) { url = item.SubItems[2].Text; break; } } BrowserForm form = new BrowserForm(); form.ShowDialog(); }
private void linkLabel1_Click(object sender, EventArgs e) { BrowserForm form = new BrowserForm(linkLabel1.Text); form.ShowDialog(this); }