Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to hook a global PASTE EVENT? Pin
DaveyM695-Nov-08 7:13
professionalDaveyM695-Nov-08 7:13 
GeneralRe: How to hook a global PASTE EVENT? Pin
dactivo7-Nov-08 19:58
dactivo7-Nov-08 19:58 
QuestionWeb Browser With Tabs Pin
jas0n231-Nov-08 11:45
jas0n231-Nov-08 11:45 
AnswerRe: Web Browser With Tabs Pin
Pedram Behroozi1-Nov-08 12:13
Pedram Behroozi1-Nov-08 12:13 
GeneralRe: Web Browser With Tabs Pin
jas0n231-Nov-08 13:35
jas0n231-Nov-08 13:35 
GeneralRe: Web Browser With Tabs Pin
jas0n231-Nov-08 14:02
jas0n231-Nov-08 14:02 
GeneralRe: Web Browser With Tabs Pin
Pedram Behroozi1-Nov-08 19:57
Pedram Behroozi1-Nov-08 19:57 
GeneralRe: Web Browser With Tabs Pin
jas0n231-Nov-08 21:43
jas0n231-Nov-08 21:43 
Hello, Thanks again Smile | :)

Here's what I got, now:

private void pictureBox3_Click(object sender, EventArgs e)
{
    TabPage page = new TabPage("Tab");
    tabControl1.TabPages.Add(page);
    WebBrowser wb = new WebBrowser();
    wb.Dock = DockStyle.Fill;
    wb.Name = "WebBrowser1";
    page.Controls.Add(wb);
    TabPage tp = tabControl1.SelectedTab;
    tp.Controls["WebBrowser1"].Text = string.Format("WebBrowser1", (tabControl1.SelectedIndex + 1).ToString());


    tp.Controls["wp"].Text = string.Format("wp", (tabControl1.SelectedIndex + 1).ToString());
}



...But, When I debug, and then click on pictureBox3(add tab button) it brings up a debug error: "object reference is not set to an instance of an object"... it doesnt even open a new tab any more hahaha... Any ideas?

thanks,
j.t.
GeneralRe: Web Browser With Tabs Pin
Pedram Behroozi1-Nov-08 22:11
Pedram Behroozi1-Nov-08 22:11 
GeneralRe: Web Browser With Tabs Pin
jas0n231-Nov-08 22:30
jas0n231-Nov-08 22:30 
GeneralRe: Web Browser With Tabs Pin
Pedram Behroozi1-Nov-08 23:04
Pedram Behroozi1-Nov-08 23:04 
GeneralRe: Web Browser With Tabs Pin
jas0n232-Nov-08 1:37
jas0n232-Nov-08 1:37 
GeneralRe: Web Browser With Tabs Pin
Pedram Behroozi2-Nov-08 2:19
Pedram Behroozi2-Nov-08 2:19 
GeneralRe: Web Browser With Tabs Pin
jas0n232-Nov-08 3:05
jas0n232-Nov-08 3:05 
GeneralRe: Web Browser With Tabs Pin
Pedram Behroozi2-Nov-08 5:16
Pedram Behroozi2-Nov-08 5:16 
QuestionHelp With dataGridView Copy and Paste Feature Pin
That Asian Guy1-Nov-08 9:02
That Asian Guy1-Nov-08 9:02 
GeneralRe: Help With dataGridView Copy and Paste Feature Pin
That Asian Guy1-Nov-08 14:47
That Asian Guy1-Nov-08 14:47 
QuestionGenerate ordered sequence of 11 numbers Pin
J-Cod3r1-Nov-08 7:57
J-Cod3r1-Nov-08 7:57 
GeneralRe: Generate ordered sequence of 11 numbers Pin
Luc Pattyn1-Nov-08 8:40
sitebuilderLuc Pattyn1-Nov-08 8:40 
Questiondatatable and datareader Pin
Zeyad Jalil1-Nov-08 6:58
professionalZeyad Jalil1-Nov-08 6:58 
QuestionHow can we create a plugin for IE with C# ? Pin
Mohammad Dayyan1-Nov-08 5:32
Mohammad Dayyan1-Nov-08 5:32 
AnswerRe: How can we create a plugin for IE with C# ? Pin
Pedram Behroozi1-Nov-08 6:21
Pedram Behroozi1-Nov-08 6:21 
QuestionSplitting a MP3 file ? Pin
Mohammad Dayyan1-Nov-08 4:53
Mohammad Dayyan1-Nov-08 4:53 
AnswerRe: Splitting a MP3 file ? Pin
DaveyM691-Nov-08 5:06
professionalDaveyM691-Nov-08 5:06 
AnswerRe: Splitting a MP3 file ? Pin
Guffa1-Nov-08 5:59
Guffa1-Nov-08 5:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.