Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Know Result of System.Window.Forms.Help.ShowHelp

Tags:

c#

.net

winforms

Does anyone know how to capture the result of the call to System.Window.Forms.Help.ShowHelp, for example, whether or not it finds the file, and the file is of correct format, and the launching of the window succeeds.

From the documentation of Microsoft at MSDN, apparently it does not return anything, nor throw any exception!

like image 890
magice Avatar asked Aug 03 '11 21:08

magice


1 Answers

No, apperently where is not way to get the result of this method in some "standard" way. You need to verify existence of the file/link before calling this method manually. It will throw ArgumentException only on null input.

like image 109
Petr Abdulin Avatar answered Oct 21 '22 12:10

Petr Abdulin