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);
Moderator: fddima
browser.BeforePopup += (s, e) =>
{
NewTab(e.url);
};
public void NewTab(string url)
_tabs.TabPages.Add(tabPage);
_pUIThread.Post((_state) => { NewTab(url); }, null);
pssgcsim wrote:Thx I got it
- Code: Select all
_pUIThread.Post((_state) => { NewTab(url); }, null);
public static void NewTab(string url)
{//Called on the browser thread
WebBrowser.Url = url;
WebBrowser.TabControl .BeginInvoke(new Action(NewTab));
}
public static void NewTab()
{//Called on the UI thread
AddNewTab(WebBrowser.Url,true);
}
Users browsing this forum: No registered users and 9 guests