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 ?