Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8290383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:47:52+00:00 2026-06-08T12:47:52+00:00

I am currently working on an app for WP7 for my university, and need

  • 0

I am currently working on an app for WP7 for my university, and need a temporary solution to a problem. Now this solution is, that I will be loading a webpage using the web browser control for WP7. For example: http://m.iastate.edu/laundry/

Now as you see on the webpage, there are certain elements I want to hide, for example the back button. For now, what I have done to handle the back button is something like this:

private void webBrowser1_Navigating(object sender, NavigatingEventArgs e)
{
    // Handle loading animations

    // Handle what happens when the "back" button is pressed
    Uri home = new Uri("http://m.iastate.edu/");

    // The the current loading address is home
    // Cancel the navigation, and go back to the 
    // apps home page.
    if (e.Uri.Equals(home))
    {
        e.Cancel = true;
        NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
    }

}

Now that works beautifully, except for the part that there is a back button on the hardware.

So my second option is to completely hide the back button ONLY on that page, and not its children. So not on http://m.iastate.edu/laundry/l/0

I am still debating on just parsing the data and displaying it in my own style, but I’m not sure if that’s completely needed seeing how the data needs constant internet service and is already in a well-put format. Plus, I feel like that would be a waste of resources? Throw in your opinions on that too 🙂

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:47:53+00:00Added an answer on June 8, 2026 at 12:47 pm

    You should inject a script in the page with InvokeScript.

    Here is the kind of Javascript code you need to remove the back button:

    // get the first child element of the header
    var backButton = document.getElementsByTagName("header")[0].firstChild;
    
    // check if it looks like a back button
    if(backButton && backButton.innerText == "Back") {
      // it looks like a back button, remove it
      document.getElementsByTagName("header")[0].removeChild[backButton];
    }
    

    Call this script with InvokeScript:

    webBrowser1.InvokeScript("eval", "(function() { "+ script +"}()");
    

    Warning: IsScriptEnabled must be set to true on the web control

    If the removal of the back button depends of the page, just test the navigating URI in C# and inject the script if neeeded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on an app that will need to upload images to an
We are currently working on an app that will display objects superimposed on the
I'm currently working on an app that will tell students when their classes start
I am currently working on an iPhone app that will have a user log
I am currently working on an app that will display images on the camera
I am currently working on a web app that will replace old systems in
I'm currently working on an app that lets the user choose an MP3 audio
I'm currently working on an app that is being created using Ironspeed Designer. It's
I'm currently working on an app that allows the user to draw pixelated images
I'm currently working on an app for a customer of mine and it will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.