RE: vs.net bug ?

From: Chris Podmore (ChrisPodmore_at_discussions.microsoft.com)
Date: 11/24/04


Date: Wed, 24 Nov 2004 02:51:02 -0800

David,

I can't find a bug. The Minimize and the re-size work for me. Why are you:
1. Me.Visible = False?
2. Me.Hide?

I wouldn't use strings to hold integers either.

If I do:
        Me.WindowState = FormWindowState.Minimized
        Me.Width = 150
        Me.Height = 200
Then the form starts minimized and is a lot smaller than in design time.

Chris.

"David Gacek" wrote:

> 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
>
>
>
>
>
>
>
>
>



Relevant Pages