Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27355

VB Point Structure can't accept 64-bit integers

$
0
0
Hi,

I have a pretty unique problem right now. I need to set the Y location of a certain control to a number that is > 32 bits ( > 32,767).

However, VB's System.Drawing.Point structure only accepts 32-bit integers for its constructors. I can't just go:

Code:

myControl.Location = New Point(0, 32768)
because that causes an overflow. And since point structures and the location property of controls are part of the .NET framework, I can't just change them to allow 64-bit integers.

Does anyone know a way around this problem?

Viewing all articles
Browse latest Browse all 27355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>