NewTab from event thread
Posted: Mon Jun 10, 2013 10:38 am
Hi I have problem with adding TabPage to TabControl in Windows Forms from event thread. In case like this one:
Calling event
NewTab modifiers
Error showed by MS Visual Studio on line
Calling event
- Code: Select all
browser.BeforePopup += (s, e) =>
{
NewTab(e.url);
};
NewTab modifiers
- Code: Select all
public void NewTab(string url)
Error showed by MS Visual Studio on line
- Code: Select all
_tabs.TabPages.Add(tabPage);