Results 1 to 4 of 4

Thread: overrides "image" member property of picturebox?

  1. #1

    Thread Starter
    Registered User
    Join Date
    Oct 2003
    Posts
    6

    overrides "image" member property of picturebox?

    hey ,

    I need to override "Image" member property of the normal picturebox , thus it accepts "Icon" types ? Do I have to make my own usercontrol or inherit from Picturebox ? I know I can convert icons to images but this would be on the image quality .

    please help me , I badly need help .suck for 3 days and can't seem to find a good link that asnwer my question

    Thanks so mcuh

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Just feed the path to the .ico file into the LoadFromFile Method:

    Code:
    pictureBox1.Image = Image.FromFile("c:\icon.ico")

  3. #3

    Thread Starter
    Registered User
    Join Date
    Oct 2003
    Posts
    6
    Originally posted by Lethal
    Just feed the path to the .ico file into the LoadFromFile Method:

    Code:
    pictureBox1.Image = Image.FromFile("c:\icon.ico")
    nope . I didn't mean this . i know i can use this or tobitmap function but i'm getting the icons using shellex from dlls and exes so the function returns icon. if i convert that to image i will lose quality and some dimensions . my question still stands : how can i override the image property in this situation ?

    thanks lethal .

  4. #4

    Thread Starter
    Registered User
    Join Date
    Oct 2003
    Posts
    6
    please help me

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