PDA

View Full Version : launch app depending on resolution.


ianhull
10-17-2004, 09:29 PM
Can anyone please help me with determining the users resolution and launching the app appropriate to the resolution.

I have read that it can be done in the help file but I do not know how.

Any samples will be much appreciated.

Thanks.

longedge
10-18-2004, 02:43 AM
This is an adaptation of something I have used in the past Ian. In your main application you can get the screen resolution in the same way as in the pre load here and use result.Width in an if statement to test if it is e.g. >800 and only then fire something like this.

ianhull
10-18-2004, 08:30 AM
thanks longedge,

Much appreciated.

I will let you know how it goes.

regards

Ian

TJ_Tigger
10-18-2004, 08:52 AM
You can try the project in this post as well.

http://www.indigorose.com/forums/showthread.php?t=7141&highlight=screen+resolution

Here is a new link to the attached file from the above post

ScreenRes (http://s94928149.onlinehome.us/pub/ScreenRes.zip)