How to display at design time an Open dialog when an item is clicked in the Properties window?

February 15th, 2012 - 09:30 pm ET by Paulo | Report spam
Hello,

I wrote an OCX with a LoadBitmap method that allows to load of BMP, PNG and
JPG graphics at run time. Recently I added to the UserControl a Bitmap
property such as the Pitcture property of a PictureBox control that enables
the addition of BMP and JPG graphics at design time but not PNG files
because they are not available in the dropdown list of file types, and the
VB6 automation doesn't support this type of graphics.

The question is:
Is it possible to popup an Open dialog with the file types I want when the
Bitmap property is clicked in the Properties window of the IDE?

Thank you in advance for any advice or example.

Paulo
Don't steal my Classic VB!



Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net
email Follow the discussionReplies 7 repliesReplies Make a reply

Similar topics

Replies

#6 Paulo
February 17th, 2012 - 06:22 pm ET | Report spam
Thanks Eduardo,
I will try the way you pointed. I didn´t know it.

Paulo
Don't steal my Classic VB!



Posted via news://freenews.netfront.net/ - Complaints to
Replies Reply to this message
#7 Paulo
February 17th, 2012 - 06:31 pm ET | Report spam
Eduardo wrote:
You can show a common dialog without using the VB's one, just by code, to
avoid adding a dependency.



Hi Eduardo,

Yes, I can use the GetOpenFileName API directly form the comdlg32.dll
avoiding the COMDLG32.OCX dependency.

Thanks again.

Paulo
Don't steal my Classic VB!



Posted via news://freenews.netfront.net/ - Complaints to
email Follow the discussion Replies Reply to this message
Help Create a new topic Previous pageReplies Make a reply
Search Make your own search