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 4252446
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:47:46+00:00 2026-05-21T04:47:46+00:00

I was looking around and saw the post for using resource (how-to-create-and-use-resources-in-net) . I

  • 0

I was looking around and saw the post for using resource
(how-to-create-and-use-resources-in-net)
. I learned how to put a file into the resources for the project and programmatically retrieve it. But, I’m not seeing the idea of having resources, maybe?
I have a tab on a form where I have a webbrowser control, but I just want to show a help document.
I put the html file as a resource, but when I print out after looking up the resource, it gives me all the file’s text (html tags) instead of just the name of the file, such that I could do something like

helpBrowser.Url = new Uri("file//:"+Properties.Resources.help);

I might need a different approach. Im using the control not to actually browse but just display a page, which isnt the intended use exactly.

Thanks, guys. StackOverflow is great!

  • 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-05-21T04:47:47+00:00Added an answer on May 21, 2026 at 4:47 am

    WebBrowser is an unmanaged component under the hood, it doesn’t know anything about .NET resources. There’s a protocol for it to read unmanaged resources but you don’t want to go there. Simply use the DocumentText property:

        private void HelpButton_Click(object sender, EventArgs e) {
            webBrowser1.DocumentText = Properties.Resources.HelpPage;
        }
    

    Beware the usual trouble with displaying off-line HTML, it won’t know where to find any images you embedded in the html. If that’s a deal breaker then you are better off having the files on disk. Which is the all-around better solution for large files anyway.

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

Sidebar

Related Questions

I was looking around in ObservableCollection<T> using a decompiler and saw some curious OnPropertyChanged
For the past two days i have been looking around the net to find
Looking around I found http://www.devco.net/archives/2008/06/26/adventures_with_ruby.php where the blogger moan about GServer's bug to destory
Looking around, I can't name a single web application (not web service) that uses
Been looking around and can't find a definite way to do this... I need
After looking around (for not terribly long I have to admit) I wonder if
Been looking around a bit and I can't seem to find any help on
Hey i have been looking around and i cant find a way to get
I have been looking around for a visualization framework that would aid graph visualization
I've been looking around quite a bit to solve my issue. I got many

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.