|
-
Jan 9th, 2014, 04:39 PM
#1
Thread Starter
Hyperactive Member
Wonky Sizing/Auto Scaling randomly started happening.
I have a large project. All of which was rolling smoothly until the other day...
I started noticing some of my labels and links (set to auto size) now stretch over the controls that sit directly below them. Now today I noticed that forms are resizing in a wonky way to! See the attached images for what I'm describing. In the images I am implicitly specifying a size on load. In which you can see is not the same at design time. It's almost as though it's adding an additional border width/height... 
So I'm not sure what was accidently switch on, but I need some help. This for sure is one of those hard question to phrase for any sort of answer on google.
Thanks in advanced.
PS I have just recently upgraded from VS2008 version 9 to VS 2012 Update 4 (I believe )
Last edited by DavesChillaxin; Jan 23rd, 2014 at 11:22 AM.
Reason: adding new photos
-
Jan 9th, 2014, 05:15 PM
#2
Re: Wonky Sizing/Auto Scaling randomly started happening.
Have you changed the Padding property by mistake or is the AutoSize property of the Form set to True?
-
Jan 9th, 2014, 06:22 PM
#3
Re: Wonky Sizing/Auto Scaling randomly started happening.
This is a (I thought) well known bug in VS2012. There was some discussion of it in this very forum a while back. As I'm told that 2012 has now been withdrawn and 2013 is up to standard I suggest you go up a year.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Jan 10th, 2014, 09:32 AM
#4
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
 Originally Posted by Joacim Andersson
Have you changed the Padding property by mistake or is the AutoSize property of the Form set to True?
Nope I haven't' I've gone through all the settings, padding is still set to their defaults. Also I toggle auto size off and on for a lot of properties to no effect.
-
Jan 10th, 2014, 09:35 AM
#5
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
 Originally Posted by dunfiddlin
This is a (I thought) well known bug in VS2012. There was some discussion of it in this very forum a while back. As I'm told that 2012 has now been withdrawn and 2013 is up to standard I suggest you go up a year.
Come on...another one? I couldn't find much about this particular one, would you mind providing a link? Have there been any known work around? This would make sense because our upgrade to 2012 was a week or two ago on this machine, and ever since this issue has exposed itself. Unfortunately upgrading a year wouldn't be possible as this is my station and work.
-
Jan 10th, 2014, 03:16 PM
#6
Re: Wonky Sizing/Auto Scaling randomly started happening.
I think what dunfiddlin is referring to is outlined in this KB article (and upgrading to VS2013 does not solve this). This issue only occur when debugging from VS and not when running the compiled EXE directly. However it doesn't seem to be the exact same thing as you experience.
-
Jan 13th, 2014, 10:02 AM
#7
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
I agree, their image also demonstrates a shrinking effect. Where as mine appears to be growing. Quite the opposite believe. It also doesn't explain the odd behavior of some of my windows controls. Those with an AutoSize property more notably.
-
Jan 13th, 2014, 11:22 AM
#8
Re: Wonky Sizing/Auto Scaling randomly started happening.
Are you really 100% sure that the AutoSize property of the Form itself is set to False?
-
Jan 13th, 2014, 01:16 PM
#9
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
Yup. I've also made sure all WinForms with links and labels that also grow have the same properties.
-
Jan 13th, 2014, 01:26 PM
#10
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
I have this weird gut feeling it has to do with Fonts and how they're measured.. I can only back this statement up with some research I did on the first issue. That link and label controls a like sized improperly at runtime. This only happens when their AutoSize property is set to True. When it is, they all grow. But just by a pixel or two. Luckily for me others are having this issue, but still can't find a working solution. So in the end all, the likely culprit is said to be my system. It wonks out when measuring up, and is sizing these controls differently than would have in the designer.
-
Jan 13th, 2014, 02:31 PM
#11
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
 Originally Posted by Joacim Andersson
Are you really 100% sure that the AutoSize property of the Form itself is set to False?
Quoted you for the attention. Changing my FormBorderStyle from FixedDialog to Sizable fixed the issue. Still confused nor can this form be sizable.
-
Jan 13th, 2014, 02:59 PM
#12
Re: Wonky Sizing/Auto Scaling randomly started happening.
Have you tried any of the other border styles?
-
Jan 13th, 2014, 03:03 PM
#13
Re: Wonky Sizing/Auto Scaling randomly started happening.
Maybe it is still related to the issue which I linked to above. Have you tried running the compiled EXE (as opposed to running it from VS)?
-
Jan 13th, 2014, 03:15 PM
#14
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
 Originally Posted by Joacim Andersson
Have you tried any of the other border styles?
Yes and Sizable is the only border style that is correct. All other border styles are incorrect but vary by how much.
-
Jan 13th, 2014, 03:19 PM
#15
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
 Originally Posted by Joacim Andersson
Maybe it is still related to the issue which I linked to above. Have you tried running the compiled EXE (as opposed to running it from VS)?
I've checked the debugger setting. Oddly enough Visual Studio Debugger Hosting Process was disabled already. Unlike those instructions imply, it should be enabled. Either way I enabled it and now my form sizes correctly for all border types. Some labels and links are still sizing incorrectly.
-
Jan 20th, 2014, 01:54 PM
#16
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
So I'm wondering..is there a stress free resolution to this or no?
I have found this article http://stackoverflow.com/questions/1...esize-properly which explains my issue, still does not explain the growth in font when compiled. Regardless, I'm still very confused and have no clue where to begin to fix this...
Temporarily I'm manually subtracting the difference. It's my only option. Enabling Visual Studio Debugger Hosting Process only removed the effect when debugging/design, yet after compile the offset is prominent again.
-
Jan 23rd, 2014, 11:18 AM
#17
Thread Starter
Hyperactive Member
Re: Wonky Sizing/Auto Scaling randomly started happening.
 Originally Posted by Joacim Andersson
Maybe it is still related to the issue which I linked to above. Have you tried running the compiled EXE (as opposed to running it from VS)?
I've added more screen shots to the original post of additional sizing issues (with labels and links a like). I have also tried running the compiled EXE and it reverts back with improper sizing. That's when I manually adjusted them for now so I can deploy in the mean time.
Last edited by DavesChillaxin; Jan 23rd, 2014 at 11:28 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|