|
-
Jan 3rd, 2004, 02:23 AM
#1
Thread Starter
Addicted Member
How can I change the form icon from ImageList in VB.NET
Hi,
How can I change the form icon from ImageList in VB.NET
Pleases send me a small example
Thanking you in advance
-
Jan 3rd, 2004, 02:35 AM
#2
Hyperactive Member
me.Icon = imagelist1.Images(x)
where x is the index of the image you want to change to and imagelist1 is attached to the form.
-
Jan 3rd, 2004, 05:33 AM
#3
Thread Starter
Addicted Member
How can I change the form icon from ImageList in VB.NET
Hi,
I test the code and it is not working !
Did you test it ?
-
Jan 3rd, 2004, 06:25 AM
#4
Hyperactive Member
VB Code:
Me.Icon = System.Drawing.Icon.FromHandle(CType(ImageList1.Images(x), System.Drawing.Bitmap).GetHicon())
-
Jan 3rd, 2004, 06:39 AM
#5
Thread Starter
Addicted Member
How can I change the form icon from ImageList in VB.NET
Hi,
Thank you very much,
It is working wonderful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|