Results 1 to 9 of 9

Thread: System.Drawing.Size values automatically changing in designer.vb file

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    System.Drawing.Size values automatically changing in designer.vb file

    Hi,

    We have a application which is developed using Vb.Net. We have a form in that application which uses MSFlexgrid and some other control.If we open the form in different PCs,it seems to be values for System.Drawing.Size are automatically changing in designer.vb file,more like they are settling for a default value.Here is same designer file compared after form is opened in another PC

    Name:  271293.png
Views: 2666
Size:  80.2 KB

    And if any changes done to MSFlexgrid properties like colour,Changes supposed to be saved in designer.vb file i think,But its seems to be saving in .resx file and encrypted something like this



    Its very difficult to compare files to check for changes.Why this is happening?please anyone help
    Thank you

  2. #2
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: System.Drawing.Size values automatically changing in designer.vb file

    Is the control docked or anchored in any way ? That could be one possible thing to look at.

    [EDIT]

    Also, is that flex grid the same one usually used in VB6 ? If so, you should note that it is a COM component and not a native WinForms control so I'd expect all kinds of boogymen.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    Re: System.Drawing.Size values automatically changing in designer.vb file

    Quote Originally Posted by Niya View Post
    Is the control docked or anchored in any way ? That could be one possible thing to look at.

    [EDIT]

    Also, is that flex grid the same one usually used in VB6 ? If so, you should note that it is a COM component and not a native WinForms control so I'd expect all kinds of boogymen.
    Some controls are anchored to top,left,but none docked. We have this problem with only one form.Some other forms which contains Flexgrid control and anchored,But they don't cause any problem.

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

    Re: System.Drawing.Size values automatically changing in designer.vb file

    But they don't cause any problem.
    As Niya suggests, you should perhaps be content with being grateful for those that do work! There simply is no reason to expect this old-timer to be up to keeping up with modern needs.
    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!

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    Re: System.Drawing.Size values automatically changing in designer.vb file

    Quote Originally Posted by dunfiddlin View Post
    As Niya suggests, you should perhaps be content with being grateful for those that do work! There simply is no reason to expect this old-timer to be up to keeping up with modern needs.
    I removed all MSFlexgrid controls from the form and checked.Values changing if MSFlexgrid controls not there also. So i am assuming that this is not flexgrid problem. What it might be?

  6. #6
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: System.Drawing.Size values automatically changing in designer.vb file

    Quote Originally Posted by winman View Post
    ...checked.Values changing if MSFlexgrid controls not there also...
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    Re: System.Drawing.Size values automatically changing in designer.vb file

    I just checked and most of changed items are ToolStripMenuitems. Any idea why their size changing automatically?

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

    Re: System.Drawing.Size values automatically changing in designer.vb file

    The ToolStrip is docked by default!
    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!

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    Re: System.Drawing.Size values automatically changing in designer.vb file

    Quote Originally Posted by dunfiddlin View Post
    The ToolStrip is docked by default!
    I checked by setting dock and aunchor properties to None but still resizing taking place. Autosize property is set to true,it may cause any influence?

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