display webpage in windows form

i want to display certain webpage in my windows form, the code i used is as follow....

private void button1_Click(object sender, System.EventArgs e)
{
object Zero = 0;
object EmptyString = "";
string webpage="http://bursa.n2nconnect.com/BursaStockSearchAll.htm";
axWebBrowser1.Navigate(webpage, ref Zero, ref EmptyString, ref EmptyString, ref EmptyString);

}

if i use the above coding, it will display the webpage in my windows form, but how can i disable all the button so that user cant click any button on the displayed webpage

or how can i disable the displayed webpage or to make it readonly is there such a way to do that



Answer this question

display webpage in windows form

  • Eduardo A. Carro

    yes, microsoft visual studio.net 2003
  • yale

    So, i though there is a work around for it, you can make it read only by not allowing to user to get the focus on the control, as there is no direct way to set the focus to false, so in the Enter Event of the control, set the focus propery of the next control to true.

    // hope this might help




  • Ron Fowler

    Ok, this property is avaliable in the 2005 version, so here i think here there is no direct way to make it readonly.


  • RBolander

    may i know how to set the allownavigation to false

    i cant find it in the axwebbrowser properties window....

    hope to receive ur reply....thank you


  • Bozer

    What you can do to restrict the user is to set the AllowNagvigation Property to False


  • Xpou

    Are you working on Visual Studio 2003



  • NawarT

    thank you...i will try it out...

    but can tell me how to write the code to set the next control to false

    thank you for your help....


  • display webpage in windows form