C
Charles Law
I have added a GIF to my project and wish to retrieve it using the res://
protocol. As an example, the first string below works, whilst the second
does not.
Const s1 As String = "res://c:\windows\system32\shdoclc.dll/pagerror.gif"
Const s2 As String = "res://c:\test\mycontrol.dll/comments.gif"
If I Ctrl+Click on the first in the IDE then the page is opened. Doing the
same on the second simply displays the default "The Page cannot be
displayed" page.
I have added the GIF to my project using "Add Existing Item ..." and
changing the Build Action to Embedded Resource. I have also tried adding a
RESX file containing the resource. I rebuild the project but neither of
these seems to work.
Can anyone suggest how it should be done?
[The reason I want to use the res:// protocol is to load custom glyphs into
the WebBrowser control, and I want them to be part of the assembly. The Add
Glyph to Table command can take a path name or a res:// protocol descriptor.
The latter seems to be the only way to read them from a resource file. If
there is another way please let me know]
TIA
Charles
protocol. As an example, the first string below works, whilst the second
does not.
Const s1 As String = "res://c:\windows\system32\shdoclc.dll/pagerror.gif"
Const s2 As String = "res://c:\test\mycontrol.dll/comments.gif"
If I Ctrl+Click on the first in the IDE then the page is opened. Doing the
same on the second simply displays the default "The Page cannot be
displayed" page.
I have added the GIF to my project using "Add Existing Item ..." and
changing the Build Action to Embedded Resource. I have also tried adding a
RESX file containing the resource. I rebuild the project but neither of
these seems to work.
Can anyone suggest how it should be done?
[The reason I want to use the res:// protocol is to load custom glyphs into
the WebBrowser control, and I want them to be part of the assembly. The Add
Glyph to Table command can take a path name or a res:// protocol descriptor.
The latter seems to be the only way to read them from a resource file. If
there is another way please let me know]
TIA
Charles