Here is some code to convert image to icons:
FileStream fs = new FileStream(@"C:\image.bmp",System.IO.FileMode.Open );
Image img = Image.FromStream(fs);
FileStream mStr = new
FileStream(@"C:\testsmall.jpg",System.IO.FileMode. Create );
Image imgThumb= img.GetThumbnailImage(100,100,null,new IntPtr());
imgThumb.Save(mStr,System.Drawing.Imaging.ImageFor mat.Jpeg);
mStr.Close();
fs.Close();
You can modify it.
To change icon of form just use YouForm.Icon = youicon; in runtime
Hope that helps
--
Tamir Khason
You want dot.NET? Just ask:
"Please,
www.dotnet.us "
"[Yosi]" <Yo**@discussions.microsoft.com> wrote in message
news:01**********************************@microsof t.com...
I have a form , I want to change form icon relate to some states,
I all image list witch include some icons.
How can I convert image to Icon or how to change the form icon ....in run
time