• Welcome to Valhalla Legends Archive.
 

[vb.net] resizing issue

Started by mentalCo., October 26, 2004, 02:49 PM

Previous topic - Next topic

mentalCo.

I made an override for resizing so I can make my program minimize to the system tray by detecting if the main window was minimized and executing the neccesary(c/s) code.  The problem is that all of my controls that were anchored no longer resize when I just adjust the main window, like maximizing, etc.  Is there a simple way to fix this?

MyndFyre

What is your code for minimizing to the tray?  I've done that with several programs and never had the issue you describe.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

mentalCo.

#2

Protected Overrides Sub OnResize(ByVal e As System.EventArgs)
        If Me.WindowState = FormWindowState.Minimized Then
            Me.ShowInTaskbar = False
            nicoIcon.Visible = True
        End If
    End Sub

edit:
im curious is there an event handler being overridden that has the code to resize all the controls?  like in form designer generated code?

MyndFyre edit: Added [ code ] tags.

MyndFyre

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

mentalCo.

That didn't work.  But I just went ahead and commented out my onResize override and reset the anchors on my controls and it works now.