C# How to open a PDF in my project resources?

后端 未结 3 1547
无人共我
无人共我 2020-12-21 02:38

I have a winfrom GUI that has a \'help\' context menu. When clicked, I would like to open the user manual for the application. The manual is a pdf which is stored within the

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-21 03:30

    Add using System.Diagnostics; to your using, and then call:

    Process.Start("path to pdf")

    You won't need to find the PDF Reader exe or anything. Just call the path of the file you want.

提交回复
热议问题