Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6827751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:18:07+00:00 2026-05-26T22:18:07+00:00

when my event fires the following code get’s run: WebBrowser browser = new WebBrowser();

  • 0

when my event fires the following code get’s run:

            WebBrowser browser = new WebBrowser();
        browser.Size = new Size(500, 500);
        browser.Dock = DockStyle.Fill;

        if (supportingInfo != null)
        {
            try
            {
                if (!String.IsNullOrEmpty(supportingInfo.Summary))
                {
                    browser.Navigate("about:blank");
                    if (browser.Document != null)
                    {
                        browser.Document.Write(string.Empty);
                    }
                    browser.DocumentText = "<html>" + supportingInfo.Summary + "</html>";

                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

I’ve debugged and every line of this get’s run, but no new browser window opens with my dynamic html. What am I missing to make the window open with my html in it?

Thanks for all the help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:18:07+00:00Added an answer on May 26, 2026 at 10:18 pm

    You need to add the WebBrowser control you just created to the form/panel you want it to dock on. e.g.

      this.Controls.Add(browser);
    

    You’re just creating an instance of the browser and settings it’s properties. No where have you actually added it visually.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run the following script, the event always fires on page load. I
In the following piece of code, the first click event fires, but the rest
Can anyone explain why the following jquery only fires the 2nd toggle event and
Given the following code Public Shared Sub DoAsyncAction() Using asmxProxy As New MyAsmxServiceProxy() AddHandler
At one point in my code, i subscribe to the following event :- UploadFolderMessageQueue.ReceiveCompleted
Which event fires when DataGrid's source is updating? I've tried DataContextChanged and SourceUpdated but
I have a textarea with many lines of input, and a JavaScript event fires
Is there an event that fires when a WCF service gets started or shut
Is there an event that fires in vb.net just before a contextMenuStrip appears when
In .NET, Windows Forms have an event that fires before the Form is loaded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.