A
Andrew Morton
Is it possible to make a form deactivate itself without minimizing it?
I have written a small utility which copies selected files from CDs
(hundreds of them). I put a CD in the tray and click a button on the form to
tell it the next CD is ready for it to process. Each CD takes a few minutes
to copy, and the form has a textbox at which I glance to see the progress. I
have the form sending itself to the back, but it would be nice if it would
also relinquish focus to the previously active window.
..NET 1.1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form.ActiveForm.SendToBack()
Form.ActiveForm.Deactivate() ' no such method :-(
' process CD
Only a few hundred more CDs to do...
Andrew
I have written a small utility which copies selected files from CDs
(hundreds of them). I put a CD in the tray and click a button on the form to
tell it the next CD is ready for it to process. Each CD takes a few minutes
to copy, and the form has a textbox at which I glance to see the progress. I
have the form sending itself to the back, but it would be nice if it would
also relinquish focus to the previously active window.
..NET 1.1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form.ActiveForm.SendToBack()
Form.ActiveForm.Deactivate() ' no such method :-(
' process CD
Only a few hundred more CDs to do...
Andrew