D
David Gacek
The code that follows doesn't minimize the form and doesn't resize the Form
from code when the window state is changed at design time.
Are the two cases related to a bug in vs.net ?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.Visible = False
Me.Hide()
'has to be a design time change
Me.WindowState = FormWindowState.Minimized
'Me.WindowState = FormWindowState.Normal
Dim x, y As String
x = 150
y = 200
Me.Width = y
Me.Height = x
Debug.WriteLine("x " & x & " y " & y)
Debug.WriteLine("Me.Height " & Me.Height & " Me.Width " & Me.Width)
End Sub
from code when the window state is changed at design time.
Are the two cases related to a bug in vs.net ?
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.Visible = False
Me.Hide()
'has to be a design time change
Me.WindowState = FormWindowState.Minimized
'Me.WindowState = FormWindowState.Normal
Dim x, y As String
x = 150
y = 200
Me.Width = y
Me.Height = x
Debug.WriteLine("x " & x & " y " & y)
Debug.WriteLine("Me.Height " & Me.Height & " Me.Width " & Me.Width)
End Sub