# Screen Ratio

Page 1 of 1

## 2 Replies - 884 Views - Last Post: 29 June 2013 - 12:15 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=323846&amp;s=0f41fc5c4129e712dee889e3564f434e&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 xxxartistxxx

Reputation: 0
• Posts: 17
• Joined: 05-April 12

# Screen Ratio

Posted 28 June 2013 - 02:27 PM

Hello,
I want to determine user's screen ratio in my vb.net application.
I try to width/height but for 1920/1080 it's 1.77777777778 it should be 16/9
Is it only way to this select case for every possible resolation or there is any faster way ?
Thanks
Is This A Good Question/Topic? 0

## Replies To: Screen Ratio

### #2 tlhIn`toq

• Xamarin Cert. Dev.

Reputation: 6534
• Posts: 14,450
• Joined: 02-June 10

## Re: Screen Ratio

Posted 28 June 2013 - 03:09 PM

1.7777777777778 : 1 *is* 16:9. Do the math.

1.77777777778 * 9 = 16
1 * 9 = 9

### #3 xxxartistxxx

Reputation: 0
• Posts: 17
• Joined: 05-April 12

## Re: Screen Ratio

Posted 29 June 2013 - 12:15 AM

tlhIn`toq, on 28 June 2013 - 03:09 PM, said:

1.7777777777778 : 1 *is* 16:9. Do the math.

1.77777777778 * 9 = 16
1 * 9 = 9

Sometimes you just need think simple