dominicwong
asked on
Is it possible to use embedded resource in 'webBrowser'?
Hi experts
I wonder if it is possible to use embedded resource of chm file in 'webBrowser'?
My C# program reads from a chm file ("Help.chm") in my local HD by calling the method
eg. the url could be:
//"mk:@MSITStore:C:\\Proje cts\\Tool\ \bin\\Debu g\\Help.ch m::/InfoTa b_InfoTab. htm"
But, I would like to use the chm file as an embedded resource. eg. Properties.Resources.Help
And I wonder how I could modify the above.
I'd seen from some Internet article suggesting casting the embedded resource into a string and assign it to webBrowser.DocumentText, but it didn't work for me.
Thanks in advance
I wonder if it is possible to use embedded resource of chm file in 'webBrowser'?
My C# program reads from a chm file ("Help.chm") in my local HD by calling the method
webBrowser.Navigate(url)
.eg. the url could be:
//"mk:@MSITStore:C:\\Proje
But, I would like to use the chm file as an embedded resource. eg. Properties.Resources.Help
And I wonder how I could modify the above.
I'd seen from some Internet article suggesting casting the embedded resource into a string and assign it to webBrowser.DocumentText, but it didn't work for me.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks help-info for your detailed explanation and with all the nice screenshot. I appreciate it.
The issue I have here came from the trouble where anti-virus scanner scans the chm help file whenever my application attempts to read it from an (external) file in my hard drive. (Please see my other question How to workaround slow down in loading chm file into C# .NET program from background security software)
In other words, my application already reads from a chm help, and loads onto a help panel successfully. Now my thought is instead of mining the help information into my application upon program startup (as the experts suggested in the other question), I would like to test if hiding the external chm help file into an internal resource (ie embedded into a dll) might solve the anti-virus scanning issue.
The issue I have here came from the trouble where anti-virus scanner scans the chm help file whenever my application attempts to read it from an (external) file in my hard drive. (Please see my other question How to workaround slow down in loading chm file into C# .NET program from background security software)
In other words, my application already reads from a chm help, and loads onto a help panel successfully. Now my thought is instead of mining the help information into my application upon program startup (as the experts suggested in the other question), I would like to test if hiding the external chm help file into an internal resource (ie embedded into a dll) might solve the anti-virus scanning issue.
ASKER
Sorry. It has been a long time. I didn't realize that this question hadn't been closed.
Thanks for your help
Thanks for your help
For calling the Help Viewer use e.g. following code or other solutions
Open in new window