[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Embed Internet Explorer Window in a Form?

Asked by j1e1g1 in C# Programming Language

Tags: embed, explorer, form

My boss wants me to write a C# app, designed to run on a mobile device, that will prompt the user for a part number, and then use that number to display content from a web page.  For example, if the user enters "441305", he wants the app to display the xml that this page generates: http://www/scripts/justin-dev.wsc/xml_test.p?part=441305.  The catch is that he doesn't want the program to open a browser window, he wants the results displayed inside a large window at the bottom of the app (nothing but horizontal and vertical scrollbars).  So, my question to you is how do i get this page to display inside of the form?

My code thus far is as follows:

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;

namespace MobileApp
{
      /// <summary>
      /// Summary description for Form1.
      /// </summary>
      public class Form1 : System.Windows.Forms.Form
      {
            private System.Windows.Forms.TextBox SearchBox;
            private System.Windows.Forms.Label SearchLabel;
            private System.Windows.Forms.Button SearchButton;
            private System.Windows.Forms.Label CopyrightLabel;
            private System.Windows.Forms.Label label1;
            private System.Windows.Forms.MainMenu mainMenu1;
            private System.Windows.Forms.MenuItem menuItem1;
            private System.Windows.Forms.TextBox ResultsBox;
            private System.Windows.Forms.MenuItem menuItem3;

            public Form1()
            {
                  //
                  // Required for Windows Form Designer support
                  //
                  InitializeComponent();

                  //
                  // TODO: Add any constructor code after InitializeComponent call
                  //
            }
            /// <summary>
            /// Clean up any resources being used.
            /// </summary>
            protected override void Dispose( bool disposing )
            {
                  base.Dispose( disposing );
            }
            #region Windows Form Designer generated code
            /// <summary>
            /// Required method for Designer support - do not modify
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                  System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
                  this.mainMenu1 = new System.Windows.Forms.MainMenu();
                  this.menuItem1 = new System.Windows.Forms.MenuItem();
                  this.menuItem3 = new System.Windows.Forms.MenuItem();
                  this.SearchLabel = new System.Windows.Forms.Label();
                  this.SearchBox = new System.Windows.Forms.TextBox();
                  this.SearchButton = new System.Windows.Forms.Button();
                  this.CopyrightLabel = new System.Windows.Forms.Label();
                  this.label1 = new System.Windows.Forms.Label();
                  this.ResultsBox = new System.Windows.Forms.TextBox();
                  //
                  // mainMenu1
                  //
                  this.mainMenu1.MenuItems.Add(this.menuItem1);
                  //
                  // menuItem1
                  //
                  this.menuItem1.MenuItems.Add(this.menuItem3);
                  this.menuItem1.Text = "File";
                  this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
                  //
                  // menuItem3
                  //
                  this.menuItem3.Text = "Exit";
                  this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
                  //
                  // SearchLabel
                  //
                  this.SearchLabel.Location = new System.Drawing.Point(45, 32);
                  this.SearchLabel.Size = new System.Drawing.Size(104, 24);
                  this.SearchLabel.Text = "Search String:";
                  this.SearchLabel.TextAlign = System.Drawing.ContentAlignment.TopCenter;
                  this.SearchLabel.ParentChanged += new System.EventHandler(this.label1_ParentChanged);
                  //
                  // SearchBox
                  //
                  this.SearchBox.Location = new System.Drawing.Point(37, 48);
                  this.SearchBox.Size = new System.Drawing.Size(120, 22);
                  this.SearchBox.Text = "";
                  //
                  // SearchButton
                  //
                  this.SearchButton.Location = new System.Drawing.Point(61, 72);
                  this.SearchButton.Text = "Search";
                  //
                  // CopyrightLabel
                  //
                  this.CopyrightLabel.ForeColor = System.Drawing.SystemColors.ControlText;
                  this.CopyrightLabel.Location = new System.Drawing.Point(25, 176);
                  this.CopyrightLabel.Size = new System.Drawing.Size(144, 20);
                  this.CopyrightLabel.Text = "(c) 2004 Justin";
                  this.CopyrightLabel.TextAlign = System.Drawing.ContentAlignment.TopCenter;
                  this.CopyrightLabel.ParentChanged += new System.EventHandler(this.CopyrightLabel_ParentChanged);
                  //
                  // label1
                  //
                  this.label1.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
                  this.label1.Location = new System.Drawing.Point(16, 8);
                  this.label1.Size = new System.Drawing.Size(163, 20);
                  this.label1.Text = "Mobile Test Application";
                  this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
                  //
                  // ResultsBox
                  //
                  this.ResultsBox.Location = new System.Drawing.Point(24, 112);
                  this.ResultsBox.Size = new System.Drawing.Size(152, 22);
                  this.ResultsBox.Text = "Results go here";
                  //
                  // Form1
                  //
                  this.ClientSize = new System.Drawing.Size(194, 199);
                  this.Controls.Add(this.ResultsBox);
                  this.Controls.Add(this.label1);
                  this.Controls.Add(this.CopyrightLabel);
                  this.Controls.Add(this.SearchButton);
                  this.Controls.Add(this.SearchBox);
                  this.Controls.Add(this.SearchLabel);
                  this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular);
                  this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
                  this.Menu = this.mainMenu1;
                  this.Text = "Mobile Test App";
                  this.Load += new System.EventHandler(this.Form1_Load);

            }
            #endregion

            /// <summary>
            /// The main entry point for the application.
            /// </summary>

            static void Main()
            {
                  Application.Run(new Form1());
            }

            private void menuItem3_Click(object sender, System.EventArgs e)
            {
                  Application.Exit();
            }

            private void menuItem2_Click_1(object sender, System.EventArgs e)
            {
                  Application.Run(new Form1());
            }

      }
}
[+][-]06/18/04 12:13 PM, ID: 11347625Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/19/04 07:47 AM, ID: 11351238Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: C# Programming Language
Tags: embed, explorer, form
Sign Up Now!
Solution Provided By: devaid
Participating Experts: 1
Solution Grade: A
 
[+][-]06/21/04 05:52 AM, ID: 11359123Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89