|
-
Dec 7th, 1999, 11:26 PM
#1
Thread Starter
Guru
I'm creating an ActiveX control. This control has a Picture property. In design mode, when I click the Picture property in the Properties Window, I see a button with an ellipsis on it (...).
When I click this button, I get the Open common dialog, which lets me choose a picture.
Is there a way to modify this button, so that you could only choose ICO files?
Or even better - is there a way to get the Picture property to accept any type of file, and then internally convert it to a 32x32 icon? The Picture property should display (Icon) in the Properties Window.
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
AIM: RYoni69
-
Dec 8th, 1999, 03:19 PM
#2
Frenzied Member
Sorry for replying to this because it probably means that no one eles will! ( I usually read the ones with no replies first)
Unless anyone else has a VB example, This might help:
I found a little Delphi program called 2icon which converts bitmaps to icons.
If you search for this the source code is also avaiable. It may be possible to base a VB program on that.
I hope this has been some help.
------------------
Mark Sreeves
Analyst Programmer
[email protected]
A BMW Group Company
-
Dec 9th, 1999, 01:06 AM
#3
You can use an ImageList control, to which you can add the Image, then use the ExtractIcon Method to Generate an Icon of the Original Image.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Dec 9th, 1999, 02:22 AM
#4
Thread Starter
Guru
... which reminds me ... I do not want my ActiveX control to require any other ActiveX control ...
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
AIM: RYoni69
-
Dec 9th, 1999, 07:05 PM
#5
New Member
I've used asyncread, got no examples but you can look in help
Bye
-
Dec 9th, 1999, 07:43 PM
#6
-
Dec 10th, 1999, 06:36 AM
#7
Thread Starter
Guru
Mark: If you read Aaron's answer and my reply to his answer, and find them contradicting (which they are), you will probably assume I would like to have a second opinion!
PietHein: Thanks, I will try looking for information on AsyncRead, whatever it is...
Anyone: I'm still open for suggestions!
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
AIM: RYoni69
-
Dec 10th, 1999, 06:44 AM
#8
Thread Starter
Guru
Ok, I read about the AsyncRead function and I don't see how it can help me do this... How did you mean?
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
AIM: RYoni69
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
|