Click here to Skip to main content
15,888,610 members
Articles / Desktop Programming / Windows Forms
Article

API Browser

Rate me:
Please Sign up or sign in to vote.
2.45/5 (11 votes)
12 Jan 2005 37.5K   1.7K   20   1
A Windows API browser that shows you all the definitions and help on API methods.

Sample Image

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

C#
// // basic source // 

private System.Windows.Forms.ListBox Functions_listBox; 
public AxSHDocVw.AxWebBrowser WebBrowser1;

/// /// The main entry point for the application. /// 

[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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionThis is an article ? Pin
Thomas Weller8-May-09 4:33
Thomas Weller8-May-09 4:33 
This is just a sample project together with a code snippet - don't know (and don't care) how good or bad it is.
An article should have at least a minimum of text, that explains what you do, why you do it and how you did it. This 'article' has exactly nothing of that...

Regards
Thomas

www.thomas-weller.de

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Programmer - an organism that turns coffee into software.


General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.