Hi there,

I think I found a critical bug in Studio .net 2003.
Try this,

Create a Form.
Create a Panel within the Form.
Create a Button within the Panel.

Now set the Button's Location.Y property to a value that it becomes above
the panel's visible area, for example, set Location.Y to -300. Now run the
program, close it again and then check Button's Size.Height value. It is now
bigger one pixel than before. It also happens if you do the same thing to
Location.X property.

Can you tell me how to correct this bug? I tried to create a component that
implements IExtenderProvider to change control's height to less one pixel
everytime it goes to designmode but I can't find a event that is raised when
this happens.

I need this because I want to create a visual control like the
Explorer-style tab that you can found on the left side of a folder browsing
window. All controls inside the tab come from above, so I have to set the
Anchor property to (Left or Bottom).

It's very important for me, please reply as soon as possible.

Thanks,
Filipe Freire

Re: Control size BUG! URGENT by William

William
Fri Nov 07 10:27:49 CST 2003

I just did it twice, once in VB.NET and once in C#. It didn't happen either
time. I'm using VS 2003.
"Filipe Freire" <ffreire@ndados.com> wrote in message
news:u10MCpUpDHA.424@TK2MSFTNGP10.phx.gbl...
> Hi there,
>
> I think I found a critical bug in Studio .net 2003.
> Try this,
>
> Create a Form.
> Create a Panel within the Form.
> Create a Button within the Panel.
>
> Now set the Button's Location.Y property to a value that it becomes above
> the panel's visible area, for example, set Location.Y to -300. Now run the
> program, close it again and then check Button's Size.Height value. It is
now
> bigger one pixel than before. It also happens if you do the same thing to
> Location.X property.
>
> Can you tell me how to correct this bug? I tried to create a component
that
> implements IExtenderProvider to change control's height to less one pixel
> everytime it goes to designmode but I can't find a event that is raised
when
> this happens.
>
> I need this because I want to create a visual control like the
> Explorer-style tab that you can found on the left side of a folder
browsing
> window. All controls inside the tab come from above, so I have to set the
> Anchor property to (Left or Bottom).
>
> It's very important for me, please reply as soon as possible.
>
> Thanks,
> Filipe Freire
>
>



Re: Control size BUG! URGENT by Filipe

Filipe
Fri Nov 07 12:08:18 CST 2003

Sorry, missed one thing I detected just now.

Try again this,

Create a component that does nothing
Create a Form
Add the component to this Form (it goes to Component Tray in the Form)
Create a Panel within the Form
Create a Button within the Panel

Now set the Button's Location.Y property to a value that it becomes above
the panel's visible area, for example, set Location.Y to -300. Now save, run
the program, close it and then check Button's Size.Height value. It is now
bigger one pixel than before. It also happens if you do the same thing to
Location.X property.


"William Ryan" <dotnetguru@comcast.nospam.net> wrote in message
news:uDzntuUpDHA.976@tk2msftngp13.phx.gbl...
> I just did it twice, once in VB.NET and once in C#. It didn't happen
either
> time. I'm using VS 2003.
> "Filipe Freire" <ffreire@ndados.com> wrote in message
> news:u10MCpUpDHA.424@TK2MSFTNGP10.phx.gbl...
> > Hi there,
> >
> > I think I found a critical bug in Studio .net 2003.
> > Try this,
> >
> > Create a Form.
> > Create a Panel within the Form.
> > Create a Button within the Panel.
> >
> > Now set the Button's Location.Y property to a value that it becomes
above
> > the panel's visible area, for example, set Location.Y to -300. Now run
the
> > program, close it again and then check Button's Size.Height value. It is
> now
> > bigger one pixel than before. It also happens if you do the same thing
to
> > Location.X property.
> >
> > Can you tell me how to correct this bug? I tried to create a component
> that
> > implements IExtenderProvider to change control's height to less one
pixel
> > everytime it goes to designmode but I can't find a event that is raised
> when
> > this happens.
> >
> > I need this because I want to create a visual control like the
> > Explorer-style tab that you can found on the left side of a folder
> browsing
> > window. All controls inside the tab come from above, so I have to set
the
> > Anchor property to (Left or Bottom).
> >
> > It's very important for me, please reply as soon as possible.
> >
> > Thanks,
> > Filipe Freire
> >
> >
>
>



Re: Control size BUG! URGENT by Bob

Bob
Fri Nov 07 12:44:07 CST 2003

Will you please STOP CROSSPOSTING!

--
Bob Powell [MVP]
C#, System.Drawing

The October edition of Well Formed is now available.
Find out how to use DirectX in a Windows Forms control
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

"Filipe Freire" <ffreire@ndados.com> wrote in message
news:OdnLeoVpDHA.2000@TK2MSFTNGP10.phx.gbl...
> Sorry, missed one thing I detected just now.
>
> Try again this,
>
> Create a component that does nothing
> Create a Form
> Add the component to this Form (it goes to Component Tray in the Form)
> Create a Panel within the Form
> Create a Button within the Panel
>
> Now set the Button's Location.Y property to a value that it becomes above
> the panel's visible area, for example, set Location.Y to -300. Now save,
run
> the program, close it and then check Button's Size.Height value. It is now
> bigger one pixel than before. It also happens if you do the same thing to
> Location.X property.
>
>
> "William Ryan" <dotnetguru@comcast.nospam.net> wrote in message
> news:uDzntuUpDHA.976@tk2msftngp13.phx.gbl...
> > I just did it twice, once in VB.NET and once in C#. It didn't happen
> either
> > time. I'm using VS 2003.
> > "Filipe Freire" <ffreire@ndados.com> wrote in message
> > news:u10MCpUpDHA.424@TK2MSFTNGP10.phx.gbl...
> > > Hi there,
> > >
> > > I think I found a critical bug in Studio .net 2003.
> > > Try this,
> > >
> > > Create a Form.
> > > Create a Panel within the Form.
> > > Create a Button within the Panel.
> > >
> > > Now set the Button's Location.Y property to a value that it becomes
> above
> > > the panel's visible area, for example, set Location.Y to -300. Now run
> the
> > > program, close it again and then check Button's Size.Height value. It
is
> > now
> > > bigger one pixel than before. It also happens if you do the same thing
> to
> > > Location.X property.
> > >
> > > Can you tell me how to correct this bug? I tried to create a component
> > that
> > > implements IExtenderProvider to change control's height to less one
> pixel
> > > everytime it goes to designmode but I can't find a event that is
raised
> > when
> > > this happens.
> > >
> > > I need this because I want to create a visual control like the
> > > Explorer-style tab that you can found on the left side of a folder
> > browsing
> > > window. All controls inside the tab come from above, so I have to set
> the
> > > Anchor property to (Left or Bottom).
> > >
> > > It's very important for me, please reply as soon as possible.
> > >
> > > Thanks,
> > > Filipe Freire
> > >
> > >
> >
> >
>
>



Re: Control size BUG! URGENT by Filipe

Filipe
Fri Nov 07 12:47:05 CST 2003

Sorry about that.
It's just that this is urgent!
But I won't do that again.
Sorry again...

"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:eoqLl8VpDHA.2312@TK2MSFTNGP12.phx.gbl...
> Will you please STOP CROSSPOSTING!
>
> --
> Bob Powell [MVP]
> C#, System.Drawing
>
> The October edition of Well Formed is now available.
> Find out how to use DirectX in a Windows Forms control
> http://www.bobpowell.net/currentissue.htm
>
> Answer those GDI+ questions with the GDI+ FAQ
> http://www.bobpowell.net/gdiplus_faq.htm
>
> Read my Blog at http://bobpowelldotnet.blogspot.com
>
> "Filipe Freire" <ffreire@ndados.com> wrote in message
> news:OdnLeoVpDHA.2000@TK2MSFTNGP10.phx.gbl...
> > Sorry, missed one thing I detected just now.
> >
> > Try again this,
> >
> > Create a component that does nothing
> > Create a Form
> > Add the component to this Form (it goes to Component Tray in the Form)
> > Create a Panel within the Form
> > Create a Button within the Panel
> >
> > Now set the Button's Location.Y property to a value that it becomes
above
> > the panel's visible area, for example, set Location.Y to -300. Now save,
> run
> > the program, close it and then check Button's Size.Height value. It is
now
> > bigger one pixel than before. It also happens if you do the same thing
to
> > Location.X property.
> >
> >
> > "William Ryan" <dotnetguru@comcast.nospam.net> wrote in message
> > news:uDzntuUpDHA.976@tk2msftngp13.phx.gbl...
> > > I just did it twice, once in VB.NET and once in C#. It didn't happen
> > either
> > > time. I'm using VS 2003.
> > > "Filipe Freire" <ffreire@ndados.com> wrote in message
> > > news:u10MCpUpDHA.424@TK2MSFTNGP10.phx.gbl...
> > > > Hi there,
> > > >
> > > > I think I found a critical bug in Studio .net 2003.
> > > > Try this,
> > > >
> > > > Create a Form.
> > > > Create a Panel within the Form.
> > > > Create a Button within the Panel.
> > > >
> > > > Now set the Button's Location.Y property to a value that it becomes
> > above
> > > > the panel's visible area, for example, set Location.Y to -300. Now
run
> > the
> > > > program, close it again and then check Button's Size.Height value.
It
> is
> > > now
> > > > bigger one pixel than before. It also happens if you do the same
thing
> > to
> > > > Location.X property.
> > > >
> > > > Can you tell me how to correct this bug? I tried to create a
component
> > > that
> > > > implements IExtenderProvider to change control's height to less one
> > pixel
> > > > everytime it goes to designmode but I can't find a event that is
> raised
> > > when
> > > > this happens.
> > > >
> > > > I need this because I want to create a visual control like the
> > > > Explorer-style tab that you can found on the left side of a folder
> > > browsing
> > > > window. All controls inside the tab come from above, so I have to
set
> > the
> > > > Anchor property to (Left or Bottom).
> > > >
> > > > It's very important for me, please reply as soon as possible.
> > > >
> > > > Thanks,
> > > > Filipe Freire
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Re: Control size BUG! URGENT by William

William
Fri Nov 07 13:10:56 CST 2003

I'm still not having it happen. Is there any chance that you are setting
the Dock or Anchors?
"Filipe Freire" <ffreire@ndados.com> wrote in message
news:OdnLeoVpDHA.2000@TK2MSFTNGP10.phx.gbl...
> Sorry, missed one thing I detected just now.
>
> Try again this,
>
> Create a component that does nothing
> Create a Form
> Add the component to this Form (it goes to Component Tray in the Form)
> Create a Panel within the Form
> Create a Button within the Panel
>
> Now set the Button's Location.Y property to a value that it becomes above
> the panel's visible area, for example, set Location.Y to -300. Now save,
run
> the program, close it and then check Button's Size.Height value. It is now
> bigger one pixel than before. It also happens if you do the same thing to
> Location.X property.
>
>
> "William Ryan" <dotnetguru@comcast.nospam.net> wrote in message
> news:uDzntuUpDHA.976@tk2msftngp13.phx.gbl...
> > I just did it twice, once in VB.NET and once in C#. It didn't happen
> either
> > time. I'm using VS 2003.
> > "Filipe Freire" <ffreire@ndados.com> wrote in message
> > news:u10MCpUpDHA.424@TK2MSFTNGP10.phx.gbl...
> > > Hi there,
> > >
> > > I think I found a critical bug in Studio .net 2003.
> > > Try this,
> > >
> > > Create a Form.
> > > Create a Panel within the Form.
> > > Create a Button within the Panel.
> > >
> > > Now set the Button's Location.Y property to a value that it becomes
> above
> > > the panel's visible area, for example, set Location.Y to -300. Now run
> the
> > > program, close it again and then check Button's Size.Height value. It
is
> > now
> > > bigger one pixel than before. It also happens if you do the same thing
> to
> > > Location.X property.
> > >
> > > Can you tell me how to correct this bug? I tried to create a component
> > that
> > > implements IExtenderProvider to change control's height to less one
> pixel
> > > everytime it goes to designmode but I can't find a event that is
raised
> > when
> > > this happens.
> > >
> > > I need this because I want to create a visual control like the
> > > Explorer-style tab that you can found on the left side of a folder
> > browsing
> > > window. All controls inside the tab come from above, so I have to set
> the
> > > Anchor property to (Left or Bottom).
> > >
> > > It's very important for me, please reply as soon as possible.
> > >
> > > Thanks,
> > > Filipe Freire
> > >
> > >
> >
> >
>
>



Re: Control size BUG! URGENT by Filipe

Filipe
Fri Nov 07 13:09:58 CST 2003

Can you tell me all steps you are making?

"William Ryan" <dotnetguru@comcast.nospam.net> wrote in message
news:ujhI3JWpDHA.2584@TK2MSFTNGP09.phx.gbl...
> I'm still not havin