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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:39:15+00:00 2026-06-13T06:39:15+00:00

I added help.txt file in Resources as text file, and did like this: private

  • 0

I added help.txt file in Resources as text file, and did like this:

private void helpButton_Click(object sender, MouseEventArgs e)
{
    System.Diagnostics.Process.Start(myProject.Properties.Resources.help);
}

It didn’t work, then I tried this way:

private void helpButton_Click(object sender, MouseEventArgs e)
{
    System.Diagnostics.Process.Start(@"help.txt");
}

and it didn’t work also, but this way it works :

private void helpButton_Click(object sender, MouseEventArgs e)
    {
        System.Diagnostics.Process.Start(@"C:\Projects\CourceWork\Resources\help.txt");
    }

The problem is that I don’t want to deal with this hard core defined path, what should I do ?

  • 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-13T06:39:17+00:00Added an answer on June 13, 2026 at 6:39 am

    It seems you want to open an embedded resource with the default program associated with .txt files, which is usually Notepad. Unfortunatly, Notepad cannot read embedded resources. You will therefore need to extract the resource and save it as a file on disk, then open Notepad with that file.

    var helpFile = Path.Combine(Path.GetTempPath(), "help.txt");
    File.WriteAllText(helpFile, myProject.Properties.Resources.help);
    Process.Start(helpFile);
    

    Alternatively, you could create your own Form that displays the text, which would be a better solution in my opinion (unless your help file is not trivial to display, such as PDF file).

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

Sidebar

Related Questions

I'm quite new to SQLite databases and need help using an external text file
Visual Studio added code analysis ( /analyze ) for C/C++ in order to help
I'm encountering an error sprintf statement. I added a printf command to help investigate,
I added a hoverboard on my site that flips over to reveal more text.
I added this part of the code in my onCreate() method and it crashes
I would like to automate the following svn command. Note this command produces the
I am trying to log the output of tests to a text file. I
My program contains a file with the name size.txt, which contains just a word
Today I have seen this weird magic NTFS system supports: each file can have
A text file I what to read has a certain pattern: Name line [tag

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.