473,898 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why would an inherited form resize itself in Visual Studio

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
Jul 21 '05 #1
11 2378
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 misunderstandin g, 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...B;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."

Jul 21 '05 #2
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 misunderstandin g, 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...B;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."

Jul 21 '05 #3
"Nick Zdunic" <ni**@ss.com.au > wrote in message
news:u_******** ***********@new s-server.bigpond. net.au...
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
Jul 21 '05 #4
"Nick Zdunic" <ni**@ss.com.au > wrote in message
news:u_******** ***********@new s-server.bigpond. net.au...
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
Jul 21 '05 #5
That's a real bummer - nice feature to have - pity it doesn't work
properly in VS.NET

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #6
That's a real bummer - nice feature to have - pity it doesn't work
properly in VS.NET

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #7
Hi Nick,

This known issue seems to be only happening in .NET framework 1.0. If
you're using .NET framework 1.1, it has to be fixed. You can also try to
download .NET framework 1.1 sp1 to see if the fix has been applied.

http://www.microsoft.com/downloads/d...54f-088e-40b2-
bbdb-a83353618b38&Di splayLang=en

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

Jul 21 '05 #8
Hi Nick,

There might be some misunderstandin g 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."

Jul 21 '05 #9


1.1

I have installed the Service pack - haven't tested it yet to see if the
problem is still occuring.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
305
by: Nick Zdunic | last post by:
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:
3
2431
by: Junkguy | last post by:
Hi, I'm having a problem in Visual Studio in C#, using .NET Framework 1.1 Version 1.1.4322 and Microsoft Development Environment 2003 Version 7.1.3088 I make a form A and subclass it with form B. I place a protected component on A and anchor it top,left,bottom,right. If I change the size of form B, component G will resize with it proportionally. But, when I recompile, the derived component G on form B will
3
4510
by: Dave Munger | last post by:
Apologies if this is a known issue, but I couldn't seem to turn it up with google or on Technet. I am using Visual C# 2005 Express, Beta 2. I am learning C# and have come to the point in the book I am reading, which covers form inheritance. Granted, the book is for Visual Studio 2003, but it directs me to use a menu item called "Add Inherited Form," available on the Project menu. This menu item, however, does not appear for me. I...
0
2235
by: Frnak McKenney | last post by:
I'm running into problems with VisualStudio.NET2003 and Windows Forms inheritance. It _feels_ like a bug, but it could just as well be a misunderstanding on my part regarding how the VS Designer handles inheritance. Environment: OS Name Microsoft Windows 2000 Professional Version 5.0.2195 Service Pack 4 Build 2195 Microsoft Visual C# .NET
13
2251
by: Lorne Smith | last post by:
Hi, First, sorry for the crosspost, but it seemed appropriate... :) I've come accross what I consider to be a bug, but I don't know if it's already known or not. (VS .Net 2003 Pro - VB.Net) Whilst playing with inherited forms, I created a simple base form containing a single button. I set this buttons' Click event to be public overridable and put "me.Close" in the code.
8
6724
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and contains a few controls anchored to the sides of the form. "frmChild" inherits from "frmBase"... and the controls appear on the inherited form as expected. However things start going wrong when I place addition controls on the "frmChild" form. When I...
0
2256
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a rich textbox to the tab sheet. The rich textbox is placed at 0,0 (upper left corner) within the tab sheet and is initially 1 "line" tall to accomodate the user's first line of text. The rich text box is, in actuality, a user control of mine...
2
1664
by: Giojo | last post by:
Hello guys! I have a problem with vistual studio 2005, it's a strange problem... I have a form, I choose some properties to change so in *.designer.cs there are the members I changed, only these.. Afterward I inherited my form to make another form, putting there some default member, so my B inherits my A form but B has default members (default for visual studio) that A has personalized, so in B.designer.cs aren't the members definitions...
4
16276
by: Mikus Sleiners | last post by:
I can't seem to add new controls to form that is inherited from another form. I have BaseForm wich have table layout on it 2 panelsm and some buttons. Now i create InheritedForm : BaseForm and want to add some new controls and add them to pannels but i can't drag and drop them ... designer does not allow me. Why is that ? Panels and table layout modifiers is set to public.
1
1878
by: Johnny Jörgensen | last post by:
Now, the following will probably sound weird to you, but I can assure you that there is a good reason for why I want to do it. Unfortunately, I'm not ad liberty to disclose WHY at this moment in time, so you will have to take my word for it. What I want to do in the application I'm developing is to open a Visual Studio designer file (C# or VB) and present the user of the application with a picture of the form - almost just like it...
0
11259
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10857
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10948
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9661
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7187
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4706
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4295
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3305
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.