|
-
Oct 27th, 2003, 11:56 AM
#1
Thread Starter
Registered User
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
-
Oct 27th, 2003, 01:21 PM
#2
PowerPoster
Just feed the path to the .ico file into the LoadFromFile Method:
Code:
pictureBox1.Image = Image.FromFile("c:\icon.ico")
-
Oct 27th, 2003, 05:46 PM
#3
Thread Starter
Registered User
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 .
-
Oct 27th, 2003, 07:23 PM
#4
Thread Starter
Registered User
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|