Control size BUG! URGENT

F

Filipe Freire

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
 
W

William Ryan

I just did it twice, once in VB.NET and once in C#. It didn't happen either
time. I'm using VS 2003.
 
F

Filipe Freire

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

Filipe Freire

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

Filipe Freire

Can you tell me all steps you are making?

William Ryan said:
I'm still not having it happen. Is there any chance that you are setting
the Dock or Anchors?
It
 
W

William Ryan

I'm still not having it happen. Is there any chance that you are setting
the Dock or Anchors?
 
H

Herfried K. Wagner [MVP]

* "Filipe Freire said:
It's just that this is urgent!

You don't need to apologize. Every question here is urgent!

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Dilbert's words of wisdom #18: Never argue with an idiot. They drag you down
to their level then beat you with experience.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top