I want to open file help in my resoure.
I usebut it is error.Code:process.start(filename)
Any one have suggest ? :D
Printable View
I want to open file help in my resoure.
I usebut it is error.Code:process.start(filename)
Any one have suggest ? :D
When you store a file in a resource file. You just store a really big byte array that represents the content of your file. So when you call Me.Resources.MyHelpFile it will return a byte().
You can turn this byte() back in a file like this:
Hope that helps!Code:Dim binWriter = New IO.BinaryWriter(IO.File.Create("help.chm"))
binWriter.Write(My.Resources.MyHelpDocument)
binWriter.Close()
Process.Start("help.chm")