开发者

Visual Basic : Window size seems wrong

I have an annoying problem: we're supposed to write a small game for university in visual basic, now my gamefield consists of 7x6 circles, so it has six rows. Between every circle there is certain spacing. Now i set the windows size to rows*(circleSize + circleSpacing) - circleSpacing. With a size of 100 and a spacing of 50 this gives me a total size of 850, and when i ask for Me.size.height it says: 850, but the wind开发者_运维技巧ow cuts of about 25-30 pixels on the bottom, why is that? I made a button with a size of 840x840 and location 0x0, and it is not fully displayed although the height of the window is 850...?

I'm very new to VB, so might be doing something wrong, but i can't figure out what. Any help is appreciated


The frame around the window is included in the Size property. Set the ClientSize property instead

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜