file.ico

From: mathon (mathon_at_discussions.microsoft.com)
Date: 10/29/04


Date: Fri, 29 Oct 2004 10:29:02 -0700

Hello,

I use the ImagButton control which posted Darren Shaffer in this forum. Up
to now I only used bmp-files for images for my buttons. But now I want to use
ico files, because I found better icons. If I assign the image ressource in
that way I always get an ArgumentException:

btnLoginButton.Image = new
Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("TestForm.DocumentsandSettings.ico"));

Is it not possible to use ico-files??

mathon