Results 1 to 5 of 5

Thread: How can I change the form icon from ImageList in VB.NET

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    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

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Dublin (Ireland)
    Posts
    304
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    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 ?

  4. #4
    Hyperactive Member jovton's Avatar
    Join Date
    Nov 2000
    Location
    South Africa
    Posts
    266
    VB Code:
    1. Me.Icon = System.Drawing.Icon.FromHandle(CType(ImageList1.Images(x), System.Drawing.Bitmap).GetHicon())
    jovton

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Posts
    224

    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
  •  



Click Here to Expand Forum to Full Width