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 9320181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:34:21+00:00 2026-06-19T03:34:21+00:00

Hello i am using this code: private void Form1_Load(object sender, EventArgs e) { webBrowser1.Navigate(about:blank);

  • 0

Hello i am using this code:

    private void Form1_Load(object sender, EventArgs e)
    {
        webBrowser1.Navigate("about:blank");

        HtmlDocument doc = webBrowser1.Document;
        doc.Write("<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.");
    }
    private void button1_Click(object sender, EventArgs e)
    {
        webBrowser1.Navigate("about:blank");
        HtmlDocument doc = webBrowser1.Document;
        doc.Write("<b><i>My Name</i> is Not </b> Khan.<b>");
    }

but when i clicked on button then webBrowser1 show blank.

  • 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-06-19T03:34:22+00:00Added an answer on June 19, 2026 at 3:34 am

    Try Below code:

        private void Form1_Load(object sender, EventArgs e)
        {
            string strText = "<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.<b><i>My Name</i> is Not </b> Khan.";
            webBrowser1.Navigate("about:blank");
            HtmlDocument objHtmlDoc = this.webBrowser1.Document;
            objHtmlDoc.Write(String.Empty);
            webBrowser1.DocumentText = strText;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string strText="<b><i>My Name</i> is Not </b> Khan.<b>";
            webBrowser1.Navigate("about:blank");
            HtmlDocument objHtmlDoc = this.webBrowser1.Document;
            objHtmlDoc.Write(String.Empty);
            webBrowser1.DocumentText = strText;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello atm I have this code private void checkBox1_CheckedChanged(object sender, EventArgs e) { if
hello i had this code and it worked well: private void Textparsing() { using
Consider this code: #include <iostream> using namespace std; class hello{ public: void f(){ cout<<f<<endl;
hello i am using this Page.ClientScript.RegisterStartupScript() to call a javascript function from vb code
Hello i'm using map() jquery to create a new object array DEMO but this
I'm using this code which is meant to check the text in webBrowser1, although
Hello I am using this code to get the data I need from 5
Hello I'm using this star rating widget http://www.fyneworks.com/jquery/star-rating/ to add functionality for users to
I have this problem when trying to run hello world program using android SDK.
Hello i have the following problem, I record a video using red5 like this:

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.