WebBrowser control problems in MFC dialog
I use WebBrowser ActiveX control in MFC dialog (CDialogEx) to display specific web page. I display that dialog with DoModal(). I save URL that I want to open in private field this->Url as CString and overwrite OnInitDialog() method to navigate to that web page:

    BOOL CMyDialog::OnInitDialog()
    {
       CDialog::OnInitDialog();
       VARIANT url;
       CALLHR(InitVariantFromString(this->Url, &url));
       Browser.Navigate2(&url, NULL, NULL, NULL, NULL);
       VariantClear(&url);
       return TRUE;
    }

This code works perfect when I create the very first instance of that dialog. When I create another instance of that class, navigation doesn't work. 
What may be the reason? How is it possible that one instance of dialog class generated by Visual Studio had influence on another one?
WebBrowser control problems in MFC dialog
===

I use WebBrowser ActiveX control in MFC dialog (CDialogEx) to display specific web page. I display that dialog with DoModal(). I save URL that I want to open in private field this->Url as CString and overwrite OnInitDialog() method to navigate to that web page:

    BOOL CMyDialog::OnInitDialog()
    {
       CDialog::OnInitDialog();
       VARIANT url;
       CALLHR(InitVariantFromString(this->Url, &url));
       Browser.Navigate2(&url, NULL, NULL, NULL, NULL);
       VariantClear(&url);
       return TRUE;
    }

This code works perfect when I create the very first instance of that dialog. When I create another instance of that class, navigation doesn't work. 
What may be the reason? How is it possible that one instance of dialog class generated by Visual Studio had influence on another one?