As far as I can ascertain you must use a standard win32res file to use that
protocol. Although in my previous post I said that you could not add *.res
files, it turns out that you can. You need to add it by manually compiling
with vbc.exe using the /Win32Resource switch. I have never used vbc manually
and have no idea how to reference those resources, but Iwould assume you
must use the ResourceReader Class, maybe someone else could enlighten us.
"Charles Law" <la****@btinternet.com> wrote in message
news:ea**************@TK2MSFTNGP11.phx.gbl...
Mick
I am interested in the solution to this also. Is it possible to use res
protocol (res://) to reference the icons when they are added this way?
Charles
"Mick Doherty" <md*******@nospam.ntlworld.com> wrote in message
news:eT**************@tk2msftngp13.phx.gbl... You won't get a *.res file as in vb6.
Add YourIcon.Ico to YourProject as existing Item.
Set Build Action Property to Embedded Resource.
Use as follows (VB.Net example):
Imports System.Reflection.Assembly
Dim MyIco as New
Icon(GetExecutingAssembly.GetManifestResourceStrea m("YourProject.YourIcon.Ic
o"))
"Kyaw Soe Lin" <ky********@yomabank.com.mm> wrote in message
news:08****************************@phx.gbl...
Dear all,
I am developing a project using VB.NET. I would like to
add icons in the resource file like VB6 to use with my
buttons. But I can't find how to add resource file in
VB.NET and how to retrieve from it. Please give me a
guide how to do this.
Thanks,
Kyaw Soe Lin