|
I must be doing something very wrong. I'm using .NET Framework 2.0, C#. I have yet to find any situation in which the Anchor property can be set in the Form Designer. Mainly I have been working with dialogs, and I can understand why Anchor might not be settable there, since dialogs cannot be resized. But I just created a new Windows Form, with its default properties, placed a button on it, and attempted to set the Anchor value for the button, and could not change it from Top,Left. I can't find anything in Help that explains why Anchor should not be able to be set in Designer. I hope that this is the right forum for this question (not Windows Forms General). Michael Bate | | MichaelBate Monday, July 06, 2009 4:44 PM | Did you click the area marked with circle in the following screen shot?
Please mark the replies as answers if they help and unmark if they don't. - Edited byKira QianMSFT, ModeratorThursday, July 09, 2009 5:15 AM
- Edited byKira QianMSFT, ModeratorThursday, July 09, 2009 5:16 AM
- Marked As Answer byMichaelBate Thursday, July 09, 2009 12:38 PM
-
| | Kira Qian Thursday, July 09, 2009 5:11 AM | Hi MichaelBate, I didn't understand your meaning of "dialogs". Do you mean a form? Since Anchor property is not for form but for controls on the form. You can set each controls Anchor property so it will be relocate in run time when form size changed. Could you please explain it more clearly? Sincerely, Kira Qian Please mark the replies as answers if they help and unmark if they don't. | | Kira Qian Wednesday, July 08, 2009 3:54 AM | Kira, Thanks for your response. As I said in my original message: "..I.. created a new Windows Form, with its default properties, placed a button on it, and attempted to set the Anchor value for the button, and could not change it from Top,Left." Do I have some setting that is not correct? I don't see that many options to change under "Tools/Options/Windows Form Designer" Am I doing something stupid? I did mention that my original problem was with controls placed in dialogs (forms with the FormBorderStyle set to "Fixed3D" or "FixedDialog") but then I was able to reproduce the problem with a generic form with default properties (no properties changed in Form Designer). Thanks again, Michael
| | MichaelBate Wednesday, July 08, 2009 2:52 PM | Hi MichaelBate, I still confuse what does "could not change it from Top,Left." mean. Just input "Bottom, Right" into that property field, does it change to botton, right? Sincerely, Kira Qian Please mark the replies as answers if they help and unmark if they don't. | | Kira Qian Thursday, July 09, 2009 2:15 AM | When I click on the dropdown indicator in the Anchor property, a rectangle divided into four quadrants, with an overlaying solid small rectangle, is displayed. No matter where I click in this rectangle (no matter which quadrant), the Anchor property does not change. I just noticed that I can type in new values (Left, Right, Top, Bottom) and then the property is set correctly and the quadrant display shows what I typed. Is this really how it is supposed to work?? Makes very little sense to me. You should be able to click in one of the quadrants and have the anchor property set correctly. Michael Bate
| | MichaelBate Thursday, July 09, 2009 4:01 AM | Did you click the area marked with circle in the following screen shot?
Please mark the replies as answers if they help and unmark if they don't. - Edited byKira QianMSFT, ModeratorThursday, July 09, 2009 5:15 AM
- Edited byKira QianMSFT, ModeratorThursday, July 09, 2009 5:16 AM
- Marked As Answer byMichaelBate Thursday, July 09, 2009 12:38 PM
-
| | Kira Qian Thursday, July 09, 2009 5:11 AM | Did you click the area marked with circle in the following screen shot?
Please mark the replies as answers if they help and unmark if they don't.
Yes, I can! THANK YOU. I don't know why I hadn't tried this before. I had been clicking in the white rectangles. Michael Bate | | MichaelBate Thursday, July 09, 2009 12:38 PM |
|