Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to minimize to task bar?

Status
Not open for further replies.

rcsenar

Programmer
Nov 17, 2001
8
0
0
US
My VB6 app does not minimize to the task bar even though I have ShowInTaskBar set to True. It shrinks down and parks itself just above the Start button. This has got to be an easy solution. What the heck am I not doing?

Thanks in advance,

Rob
 
That definitely helps to minimize to the System Tray. But what about to the Task Bar? There has to be a simple solution.
 
That is really strange. The only way I get that effect of not minimizing to the tray is if ShowInTaskBar is set to false. If you ahve it set to true, it whould minimize properly.

I would suggest creating a new form and copying all your code and objects to the new form. It may be that you made a setting change somewhere. Craig, mailto:sander@cogeco.ca

Remember not to name the Lambs...
It only makes the chops harder to swallow
 
Try this:

Private Sub Form_Resize()
Dim vbresize As FormWindowStateConstants

If WindowState = vbresize Then
RichTextBox1.Width = Me.Width - 100
RichTextBox1.Height = Me.Height - 670
End If


If WindowState = vbMaximized Then
RichTextBox1.Width = Me.Width - 100
RichTextBox1.Height = Me.Height - 800
End If
'this is necessary to assure that the minimized window is hidden
If Me.WindowState = vbMinimized Then Me.Hide

End Sub

it should help ken Christensen
Ken@Christensen.dk
Ken Christensen Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top