ActiveX Control Creation - "Open File Dialog Box" in properties settings ?
Posted on 1998-09-01
I'm a fairly experienced Visual Basic 5.0 programmer that is just getting the hang of ActiveX Control Creation. I've figured out that to set the color property of your control that you can declare your Let/Get property statements "As OLE_COLOR" and when you've made your OCX / ActiveX and are using it at design time, all you have to do is click on the ChangeColor perperty you made and you have a nice, neat color picker there for you to select a color visually, instead of having to put in the HEX code for the color.
My question is : if you want to pop up a "File Open Dialog Box" so that the user can set a file location of say a picture for the control you're creating, they can click on the property of the .OCX / ActiveX and it will bring up the "File Open Dialog Box" just like when you click on the "Picture" property of a PictureBox and it will let you
locate the picture file you wish to display in the PictureBox, how do you declare that ? Is there an "As" statement that you just implement similar to the "As OLE_COLOR" that will give you that ? I've not been able to locate it if there is.