Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. disable back buttons

disable back buttons

Scheduled Pinned Locked Moved C#
csharphelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prgramya
    wrote on last edited by
    #1

    i have a application in c# that uses web browser control How can i disable Back buttons and forward button of my application if there is no page to be navigated. ifa nayone can help please. thanks ramya

    C G 2 Replies Last reply
    0
    • P prgramya

      i have a application in c# that uses web browser control How can i disable Back buttons and forward button of my application if there is no page to be navigated. ifa nayone can help please. thanks ramya

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      You cannot. This is a function of the browser. ColinMackay.net Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

      1 Reply Last reply
      0
      • P prgramya

        i have a application in c# that uses web browser control How can i disable Back buttons and forward button of my application if there is no page to be navigated. ifa nayone can help please. thanks ramya

        G Offline
        G Offline
        goyal manish
        wrote on last edited by
        #3

        Hi try following code, write it in OnInit method this.RegisterClientScriptBlock("DesableButton","window.history.forward(1); "); :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups