Anchor problems C# .Net 2003

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • slavo
    New Member
    • Apr 2007
    • 1

    Anchor problems C# .Net 2003

    Hello all, I have an issue with the use of anchoring.

    I have on a panel, a user control which I have anchored top, bottom, left and right.
    The user control is there along with a few buttons and other GUI objects.

    The problem I have is when minimizing...

    If I click the minimize button, then restore or maximize the window, the user control resizes itself incorrectly in the vertical direction (the horizontal direction is fine).

    My user control is one which contains Checklistboxes and labels that are populated using the title and fields of database tables (It's part of a query wizard). I mention this because some of the tables have a large number of fields which would create a vertical scrollbar for that particular table automatically. With these scrollbars I have been able to check that the control isn't anchoring to the bottom of the form as first thought, but beyond that.

    I have looked for other similar problems but to no avail...

    any help greatly appreciated,

    Regards,

    J Westdorp
  • rayfusion
    New Member
    • Jan 2008
    • 2

    #2
    I am having the same issue. Did you ever find a solution to this?

    Originally posted by slavo
    Hello all, I have an issue with the use of anchoring.

    I have on a panel, a user control which I have anchored top, bottom, left and right.
    The user control is there along with a few buttons and other GUI objects.

    The problem I have is when minimizing...

    If I click the minimize button, then restore or maximize the window, the user control resizes itself incorrectly in the vertical direction (the horizontal direction is fine).

    My user control is one which contains Checklistboxes and labels that are populated using the title and fields of database tables (It's part of a query wizard). I mention this because some of the tables have a large number of fields which would create a vertical scrollbar for that particular table automatically. With these scrollbars I have been able to check that the control isn't anchoring to the bottom of the form as first thought, but beyond that.

    I have looked for other similar problems but to no avail...

    any help greatly appreciated,

    Regards,

    J Westdorp

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Are you sure it is the user control itself, and not the controls IN the user control that are not responding correctly to anchoring?

      Comment

      • rayfusion
        New Member
        • Jan 2008
        • 2

        #4
        I have a windows form that has a listbox, label and a input box. I input numbers into the input box and the number is then displayed in the listbox and label. I have the these three (3) controls anchored at all sides so when I stretch the windows form, the controls also stretch. If I minimize and then maximize the form, the controls become distorted. If I stretch the windows form ever so slightly and then minimize/maximize, the controls appear correctly as they should.

        Have you seen this before? Do you have a possible work around I can try/

        Thanks in advance for your help.

        Comment

        Working...