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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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.GetManifestResourceStream("YourProject.YourIcon.Ic
> > o"))
> > "Kyaw Soe Lin" <(E-Mail Removed)> wrote in message
> > news:08d801c355b6$e4ea3930$(E-Mail Removed)...
> >
> > > 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
> >
> >
>
>
|