If I am not missing something, isn't this what you are trying to
accomplish. Form1 caption remains the same and the form
caption in the taskbar showing a percentage or something. Use
two forms and the first one is the main form with the
.ShowInTaskBar = False and the second form's .ShowInTaskBar =
True. Change form2 caption like percentage changing etc.
Form2 is just for the taskbar percentage caption.VB Code:
Option Explicit 'FORM1.SHOWINTASKBAR = FALSE 'NEED A TIMER - TIMER1 INTERVAL OF 1000 Private miPercent As Double Private mbShown As Boolean Private Sub Form_Load() miPercent = 0 mbShown = False Form1.Caption = "This is Form1's static caption" Timer1.Enabled = True End Sub Private Sub Timer1_Timer() miPercent = miPercent + 1 Form2.Caption = miPercent & "% Done" Form1.Show 'MOVE FORM OFF OF SCREEN If mbShown = False Then Form2.Show vbModeless, Me Form2.Move -10000, -10000 Form1.Show mbShown = True End If End Sub
Handel the click on the taskbar by minimizing the form2 thus re-
activating form1. The user can not activate form2.
Is this right???VB Code:
Option Explicit 'FORM2.SHOWINTASKBAR = TRUE Private Sub Form_Activate() Form2.WindowState = vbMinimized Form1.Show End Sub
Just some basic logic. I'm sure with some subclassing you can make it cleaner.
Edit. Just realized that buggy suggested something similar.





Reply With Quote