1. rc on toolbox
2. choose item
3. com component
4. microsoft web browser
5. ok
6. add a toolbar control
private void btn_click()
{
system.object nullobject=0;
cursor.current=cursor.waitcursor;
awb1.navigate(textbox1.text,ref nullobject,ref nullobj str,ref nullobjstr);
}
private void toolbar() // Button is the base class for all Button created in an c# application
{
if(e.Button==b1) //e contain the information about a control rise an event so this code is used to find which button cause in the event to generate this button causing event identified by their name property
{
awb1.gohome();
}
if(e.Button==b2)
{
awb1.refresh();
}
if(e.Button==b3)
{
awb1.gohome();
}
if(e.Button==b4)
{
awb1.goforward();
}
if(e.Button==b5)
{
awb1.stop();
}
if(e.Button==b6)
{
awb1.goserch();
}
}
No comments:
Post a Comment