how to make a back and forward button in visual studio express 2012 for a webbrowser


All replies

  • Hello Sticky,

    I have moved this thread to Visual C# forum for better response.

    Best regards,

    Amanda Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, February 08, 2013 8:21 AM
  • Your question is not very clear.

    Are you looking forward for a button in your web application to move back and forward?

    If this is the case, you can use simple anchors to perform this action, below is the example:

    <a onClick="history.go(-1)"> Back </a>
    <a onClick="history.go(1)"> Forward </a>

    Hope this helps.



    Whenever you see a reply and if you think is helpful, click "Alternate TextVote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Alternate TextMark As Answer".

    Friday, February 08, 2013 9:27 AM
  • this may help you

    thanks and regard love4csharp

    Sunday, February 10, 2013 5:50 AM
  • Hi,

    Use a WebBrowser Control for C# Windows Application.


    NavigationBack & NavigationForward is a two button, You can put this top of the WebBrowser control to Look & Feel like Back & Forward button. And within the click event you can put bellow code.

    private void NavigationBack_Click(object sender, EventArgs e)

    private void NavigationForward_Click(object sender, EventArgs e) { webBrowser1.GoForward(); }

    Happy Coding


    Knight Data Access Layer - .NET ORM, LINQ Provider, and more

    Monday, February 11, 2013 8:17 AM