-
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
-
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
-
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]
-
... 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
-
I've used asyncread, got no examples but you can look in help
Bye
-
I think that once Aaron Young has posted a reply you can assume the topic to be closed!! :)
[This message has been edited by Mark Sreeves (edited 12-10-1999).]
-
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
-
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