On a button click or some other event add something like this
int orderPart = 441305
Object n = null;
axWebBrowser1.Navigate("ht
Main Topics
Browse All TopicsMy 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-
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.TextB
private System.Windows.Forms.Label
private System.Windows.Forms.Butto
private System.Windows.Forms.Label
private System.Windows.Forms.Label
private System.Windows.Forms.MainM
private System.Windows.Forms.MenuI
private System.Windows.Forms.TextB
private System.Windows.Forms.MenuI
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.ResourceM
this.mainMenu1 = new System.Windows.Forms.MainM
this.menuItem1 = new System.Windows.Forms.MenuI
this.menuItem3 = new System.Windows.Forms.MenuI
this.SearchLabel = new System.Windows.Forms.Label
this.SearchBox = new System.Windows.Forms.TextB
this.SearchButton = new System.Windows.Forms.Butto
this.CopyrightLabel = new System.Windows.Forms.Label
this.label1 = new System.Windows.Forms.Label
this.ResultsBox = new System.Windows.Forms.TextB
//
// mainMenu1
//
this.mainMenu1.MenuItems.A
//
// menuItem1
//
this.menuItem1.MenuItems.A
this.menuItem1.Text = "File";
this.menuItem1.Click += new System.EventHandler(this.m
//
// menuItem3
//
this.menuItem3.Text = "Exit";
this.menuItem3.Click += new System.EventHandler(this.m
//
// 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
this.SearchLabel.ParentCha
//
// 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
this.SearchButton.Text = "Search";
//
// CopyrightLabel
//
this.CopyrightLabel.ForeCo
this.CopyrightLabel.Locati
this.CopyrightLabel.Size = new System.Drawing.Size(144, 20);
this.CopyrightLabel.Text = "(c) 2004 Justin";
this.CopyrightLabel.TextAl
this.CopyrightLabel.Parent
//
// label1
//
this.label1.Font = new System.Drawing.Font("Tahom
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.ContentAlig
//
// 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.Res
this.Controls.Add(this.lab
this.Controls.Add(this.Cop
this.Controls.Add(this.Sea
this.Controls.Add(this.Sea
this.Controls.Add(this.Sea
this.Font = new System.Drawing.Font("Tahom
this.Icon = ((System.Drawing.Icon)(res
this.Menu = this.mainMenu1;
this.Text = "Mobile Test App";
this.Load += new System.EventHandler(this.F
}
#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());
}
}
}
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
On a button click or some other event add something like this
int orderPart = 441305
Object n = null;
axWebBrowser1.Navigate("ht
Business Accounts
Answer for Membership
by: j1e1g1Posted on 2004-06-18 at 12:13:10ID: 11347625
I found the 'Microsoft Web Browser' Com object and inserted it onto my form. However, I don't know how to use it or call it. Right now, when I build my project, there is just a blank, white space where the Microsoft Web Browser Object should be, and I don't know what to pass it in order to make it actually display something.
sender, System.EventArgs e)
This is what it put in my code for me:
private void axWebBrowser1_Enter(object
{
}
For example:
How would I make it go to google when the user clicks on a button?