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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:07:55+00:00 2026-06-02T06:07:55+00:00

Ok I am working on a project for my class. I have to make

  • 0

Ok I am working on a project for my class. I have to make everything on one page, have a menu on the top. In the menu it is suppose to have new,open,From Html,save,and exit. I have all but the From HTML one done. I am kinda confused. with everything needed to be on one page when the user click the From HTML it show show a textbox and a button then you should be able to put in a web address and click go and the html code shows up in the richtextbox. Now the problem I am having is getting it all to word right. This is what I have so far..

  private void button1_Click(object sender, EventArgs e)
    {
         WebRequest myRequest;
        myRequest = WebRequest.Create("//");
        WebResponse myResponse = myRequest.GetResponse();
        Stream responseStream = myResponse.GetResponseStream();
        StreamReader reader = new StreamReader(responseStream);

        StringBuilder sb = new StringBuilder();
        string line="";
        while ((line = reader.ReadLine()) != null)
        {
            sb.Append(line);
            sb.Append("\r\n");
        }
        richTextBox1.Text = sb.ToString();

    }

as you can see this line has this

 myRequest = WebRequest.Create("//");

being the fact I kind forget how to have it set to blank for the user to enter in there information. Or is there a way that when they click on From HTML that a messagebox can come up with the textbox and button but displays in the richTextBox?
I forgot to add this code

private void fromHTMLToolStripMenuItem_Click(object sender, EventArgs e)
    {

    }

This is where the messagebox should be a something with visible when the user click this button so it shows the textbox and button to display the HTML in the richtext area.

EDIT: I have a panel group which is called panel1. It has the button and the textbox for the user to enter in the URL that they want to. Know my question is when the peron clicks on From HTML I need to get the panel visible for only that one. So would I click on the panel and how would I only have it visible for only that one.

  • 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-02T06:07:57+00:00Added an answer on June 2, 2026 at 6:07 am

    Since this is homework, I’m not going to give you the full answer, but here’s a place to start:

    MessageBox presents the user with a message and lets him click a button in response, but you can’t add controls to it. Instead, you’ll have to define another form that contains your textbox and confirmation button, and open it in the handler for fromHTMLToolStripMenuItem_Click. You could set a property in that form to hold the user’s response (the desired URI), and retrieve it in the event handler when the form returns.

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

Sidebar

Related Questions

I have been working on a Java project for a class for a while
In the project I'm working on now, we have base Entity class that looks
i have been working on moving one of my apps away from the shared
I'm working on a project in which I have a class, DeviceCommunicator , that
For a class project, a few others and I have decided to make a
I'm working on a project for class that involves generics. public interface Keyable <T>
I'm working on a class project to build a little Connect4 game in Java.
I'm working on a class project which is using a Kinect. According to the
I am working on a group project for class and we are trying out
I'm working on a project where a central class (the subject), will contain alot

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.