Why would an inherited form resize itself in Visual Studio

N

Nick Zdunic

Hi,

I have some forms in my application. Some visually inherited forms resize
themselves in Visual Studio - ruuning my previous settings. Locking the
form has no effect either.

The forms it has problems with seem to be when the inheritance structure in
greater than 2 levels deep.

It is as follows:

ViewWin - part of the MVC structure I'm using. All forms in the
application inherit from this
\/
\/
Second Level Form - these seem to be Ok
\/
\/
Third Level Form - these forms seems to resize all the time

Any ideas or known issues with this.

Regards,

Nick
 
K

Kevin Yu [MSFT]

Hi Nick,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that some inherited forms will be resized
automatically at design time. If there is any misunderstanding, please feel
free to let me know.

As far as I know, if there are some controls which has anchor settings in
the parent form, the code generator will sometimes goes wrong. Here is a KB
article about this.

http://support.microsoft.com/default.aspx?scid=KB;EN-US;316560

Please check to see if this is the issue you have met. If not, could you
please let me know the version of VS.NET you're using? Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
M

Marc Bernard

Any ideas or known issues with this.

This is one of the more well-known issues. The KB article mentions anchored
controls, but it seems to happen in cases where there are no controls on the
form as well, or when they aren't anchored.

The only real workaround is to not use the form designer.

Marc
 
N

Nick Zdunic

That's a real bummer - nice feature to have - pity it doesn't work
properly in VS.NET
 
K

Kevin Yu [MSFT]

Hi Nick,

There might be some misunderstanding in my last post. This issue exists in
..NET framework 1.0. And it has been fixed in .NET framework 1.1. Could you
let me know your .NET framework version? Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
N

Nick Zdunic

1.1

I have installed the Service pack - haven't tested it yet to see if the
problem is still occuring.
 
K

Kevin Yu [MSFT]

Hi Nick,

Please take your time and test it. If the problem still persists, could you
please send me a repro package, so that I can deliver my assistance more
quickly. Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
M

[MSFT]

Hi Nick,

Did the probelm still exist? If you need further assistance on this issue,
please feel free to let us know.

Luke
 

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