RE: vs.net bug ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

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

  • Re: A note on computing thugs and coding bums
    ... Here's my response including a bug fix. ... to make "modern strings" possible was designed and first implemented ... contents to strings, to compare them, and to duplicate them. ... while the Pike code will NEVER work...for international strings. ...
    (comp.programming)
  • IExplorer
    ... these strings fail miserably? ... Or maybe the bug isnt exactly that easily ... program filename or pre-existing CLSID definition in the target ...
    (Vuln-Dev)
  • Re: Why no Ada.Wide_Directories?
    ... Not all possible file system features, even common ones, are abstracted ... The latter is a bug, because the file exists, is accessible ... Yet the standard doesn't ... character strings, then you are wrong. ...
    (comp.lang.ada)
  • Re: Most Interesting Bug Track Down
    ... I was writing usable which dealt with strings. ... I had to read through the code in detail before the bug ... legitimate character, not a string terminator. ... Anything involving a stack overrun with stack checking turned off. ...
    (comp.lang.c)
  • bug in length()
    ... the bug was fixed in gawk 3.1.7 but i think problems still exist. ... generated strings are generated from that distribution. ... slotDemo2 correctly generated 5 such strings but slotDemo1 only ...
    (comp.lang.awk)