一、窗体中控件的自适应
该实例用了控件的Dock和Anchor属性。
Anchor:指定控件距容器边缘的距离;
2025年06月29日
2025年06月29日
by Alison Driver 艾莉森o德里弗
When I was a young girl living in Ireland, I was always pleased when it rained, because that meant I could go treasure hunting. 我小时候生活在爱尔兰,下雨的时候我总是很高兴,因为那意味着我可以去寻宝。
What’s the connection between a wet day and a search for buried treasure? Well, it’s quite simple. Ireland, as some of you may already know, is the home of Leprechauns – little men who possess magic powers and, perhaps more interestingly, pots of gold. Now, although Leprechauns are intriguing characters, I have to admit that I was more intrigued by the stories of their treasure hoard. This, as all of Ireland knows, they hide at the end of the rainbow. Leprechauns can be fearsome folk but if you can discover the end of the rainbow, they have to (begrudgingly) surrender their gold to you. So whenever it rained, I would look up in the sky and follow the curve of the rainbow to see where it ended. I never did unearth any treasure, but I did spend many happy, showery days dreaming of what I could do with the fortune if I found it. 雨天和寻宝有什么联系呢?这很简单,也许有些人知道,爱尔兰是矮妖精的家-那些小人拥有魔法,更有趣的是他们有一盆盆的黄金。尽管矮妖精们很奇妙,我必须承认我更多是被他们的宝藏吸引了。所有爱尔兰人所知道的,他们就藏在彩虹的尽头,他们必须(不情愿地)把黄金交给你。 所以下雨时,我都会抬头看彩虹,沿着曲线寻找彩虹的尽头。我从来没有找到过任何宝藏,但是我的确度过了很多开心的下雨天,想着如果找到了宝藏要怎么处置它们。