Quantcast
Viewing all articles
Browse latest Browse all 27418

VS 2010 Button within a Location to execute a code

I am getting and error where 80, 380 is and the Comma is getting a error it blatantly says ") expected"

Can someone tell me why it does this?



Code:

If e.KeyCode = Keys.Space And BtnSprite.Location = New Point(12, 330) <= (80, 380) Then
            MsgBox("Txt here")
        End If

Additional info: I wan it if the button sprite is within the location of 12, 330 and 8-, 380 to execute the msgbox. I was confused on how I can implicate between methods but there is none. There is Greater then and less then signs that do the trick.

Viewing all articles
Browse latest Browse all 27418

Trending Articles



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