By Mike Lewis
A colleague recently asked if it was possible to hide the icon in a VFP form. She was referring to the icon at the left end of the title bar - the one you click to reveal the control menu.
One way to do that is to set the form's ControlBox property to .F. That will hide the icon, but it will also hide the Minimize, Maximize and Close buttons at the other end of the title bar. If that's not what you want, you could add your own version of those buttons to the form itself, but, of course, they won't look like real title-bar buttons.
An alternative method is to retain the icon but to make it invisible. That way, the buttons at the right-hand end will still appear, and you will still be able to open the control menu (by clicking in the space which the icon would otherwise occupy).
To create an invisible icon, create a new 16 x 16 image in your favorite image editing tool. Fill it with the "transparent" color (that is, with an alpha channel of zero). Then save the image as an ICO file, and use that file for the form's Icon property.
One small disadvantage of this method is that there will be a gap between the form's caption and the left edge of the title bar, which might look odd. But if you can live with that, the method should work fine.