Introduction
This is just a basic article that shows how to create a program that uses the Microsoft Web Browser control, it is also just a posting that gives you a helpful API browser.
Using the code
private System.Windows.Forms.ListBox Functions_listBox;
public AxSHDocVw.AxWebBrowser WebBrowser1;
[STAThread]
static void Main()
{
Application.Run(new APIBrowser());
}
public static object nullObject = 0;
public static string str = "";
public static object nullObjStr = str;
private void Functions_listBox_SelectedIndexChanged(object sender,
System.EventArgs e)
{
WebBrowser1.Navigate("http://custom.programming-in.net/" +
"articles/art9-1.asp?f=" +
Functions_listBox.SelectedItem.ToString(),
ref nullObject, ref nullObjStr,
ref nullObjStr, ref nullObjStr);
}
private void Functions_listBox_DoubleClick(object
sender, System.EventArgs e)
{
WebBrowser1.Navigate("http://www.google.com/search?hl=en&q=" +
Functions_listBox.SelectedItem.ToString() +
"&btnG=Google+Search", ref nullObject,
ref nullObjStr, ref nullObjStr, ref nullObjStr);
}
private void Form1_Resize(object sender, System.EventArgs e)
{
Functions_listBox.Width = 264;
WebBrowser1.Width = this.Width - Functions_listBox.Width - 5;
}
Points of Interest
I learned that the web browser can be useful in linking to help documents not on your computer.