Results 1 to 17 of 17

Thread: Wonky Sizing/Auto Scaling randomly started happening.

  1. #1

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    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 )
    Attached Images Attached Images     
    Last edited by DavesChillaxin; Jan 23rd, 2014 at 11:22 AM. Reason: adding new photos
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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?

  3. #3
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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!

  4. #4

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Re: Wonky Sizing/Auto Scaling randomly started happening.

    Quote Originally Posted by Joacim Andersson View Post
    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  5. #5

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Re: Wonky Sizing/Auto Scaling randomly started happening.

    Quote Originally Posted by dunfiddlin View Post
    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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.

  7. #7

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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?

  9. #9

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  10. #10

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  11. #11

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Re: Wonky Sizing/Auto Scaling randomly started happening.

    Quote Originally Posted by Joacim Andersson View Post
    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  12. #12
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Wonky Sizing/Auto Scaling randomly started happening.

    Have you tried any of the other border styles?

  13. #13
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    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)?

  14. #14

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Re: Wonky Sizing/Auto Scaling randomly started happening.

    Quote Originally Posted by Joacim Andersson View Post
    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  15. #15

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Re: Wonky Sizing/Auto Scaling randomly started happening.

    Quote Originally Posted by Joacim Andersson View Post
    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  16. #16

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

  17. #17

    Thread Starter
    Hyperactive Member DavesChillaxin's Avatar
    Join Date
    Mar 2011
    Location
    WNY
    Posts
    451

    Re: Wonky Sizing/Auto Scaling randomly started happening.

    Quote Originally Posted by Joacim Andersson View Post
    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.
    Please rate if my post was helpful!
    Per favore e grazie!




    Code Bank:
    Advanced Algebra Class *Update | True Gradient Label Control *Dev | A Smarter TextBox *Update | Register Global HotKey *Update
    Media Library Beta *Dev | Mouse Tracker (Available in VB.net and C#.net) *New | On-Screen Numpad (VB.net) *New

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
  •  



Click Here to Expand Forum to Full Width