|
-
May 18th, 2007, 12:27 AM
#1
Thread Starter
Hyperactive Member
Screen resolution, possibly very simple
Hi all
I have made a tetris game and i need to know how to compensate for different screens, I made the program on a CRT screen with 1024 * 768 but what confuses me is that when I use it on my girlfreinds laptop I set the screen resolution to the same as above, but I still get half of the app cut off.
What confuses me even more is that the form is the only thing that gets resized... I also have the form border style set to none and use an image for the background.
Can someone please tell me how to fix this problem without reworking any code, I would like to just check this in form load event, and if nececary take the appropriate action, Also the way I draw the game, it still apears as if everything is sized correctly except the form, it appears to be a height issue rather than width, does anybody know why this happens?
I have made the game as a tutorial aswell, with heavy commenting and justification as to why I have used each sub/function, and this is all thats needed to complete it. I will post it in another thread when I make this adjustment.
Thanks in advance...
-
May 18th, 2007, 05:26 AM
#2
Re: Screen resolution, possibly very simple
Have you Docked / Anchored your controls on your Form ¿
VB.NET MVP 2008 - Present
-
May 18th, 2007, 05:55 PM
#3
Thread Starter
Hyperactive Member
Re: Screen resolution, possibly very simple
No, none of the controls are docked or anchored, As the form cannot resize I do not need to. the thing that confuses me is for example, if the form is 200 * 400, and the area which I paint the game is a rectangle of 180 * 300 (located at point 10,50), the form will apear shorter than the area I paint the rectangle, but WHY! when the forms height is set to 400, and the rectangle i paint is only 300 and its located at 50. I should have the same area below the area I paint as I do above it. I should have done all painting and sizing by percentages rather than fixed sizes, but its too late for that and I really cant be screwed reworking all the code.
Could it have anything to do with the image I am using for the background?
I will upload the project soon...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|