>Why doesn't the DrawIcon work when I have the ShowWindow = 2? It works when ShowWindow is 0.
I'll bite...why doesn't...:-)
Seriously, what's the problem? Are you getting DrawIcon.prg not found?
I use DrawIcon() for an About dialog. For SDI apps, I have ShowWindow = 1 and Desktop = .T. This allows the dialog to be outside the application form and still modal. If I set ShowWindow = 2, then the Window can't be modal and the CLEAR DLLS command causes the above to occur when the form's re-drawn.
Now, if this doesn't describe your situation, post some of the code and we'll see if we can't nail it.
George
Ubi caritas et amor, deus ibi est