By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,982 Members | 1,738 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,982 IT Pros & Developers. It's quick & easy.

Anchor problems C# .Net 2003

P: 1
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
Apr 20 '07 #1
Share this Question
Share on Google+
3 Replies


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

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
Jan 22 '08 #2

Plater
Expert 5K+
P: 7,872
Are you sure it is the user control itself, and not the controls IN the user control that are not responding correctly to anchoring?
Jan 22 '08 #3

P: 2
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.
Jan 22 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.