Set control box to false and text to blank
I placed a small button top left of the form with this code I was using the toolwindow border style but it should work with other styles as well.
Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If Me.Width > 200 Then Me.Width = 50 Me.Height = 15 Else Me.Width = 520 Me.Height = 225 End If End Sub




Reply With Quote