| I just figured this one out...
The only way to do this is to show something modally over top of your modal form and change the caption just be for you do it. This worked in VB6 for me.
Example:
-----modMain.bas---------------------
sub main()
...
frmMain.Show vbModal
...
End Sub
--------frmMain.frm------------------
Private Sub Command1_Click()
frmMain.Caption = frmMain.Caption
MsgBox "Your Form will now have a TaskBar Button!"
End Sub |
-------End Form----------
There is a clever way of doing this automatically by using a second form instead of a message box and placing the code in the frmMain Activate event.
The second form would have a 0 width and 0 height so it would not be visible and it would unload itself right after it loaded. |