>>I'm using Visual MaxFrame Professional 4. When I set Icons using property sheet or by setting Thisform.Icon in the init method, then the icon was being over-written. No biggie, I just set the icon in the refresh method to make sure I had proper one.
>
>Solutions like this are dangerous. You worked around the problem without knowing the cause. Chances are, VMP has a set method to use to set the icon, and by using your own method instead you are stepping on VMP's toes.
>
>JMHO-
Erik,
You are absolutely correct. There is a SetIcon method in FrmBase that is called from the Show method when the form is launched. Since Show is done after Init, anything you set in Init will get overwritten.
The default is to have one icon specified in the APPINFO table and it is used for all forms unless an icon is set in the property sheet. If you want to change this behavior, subclass SetIcon and do what you want.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao