[HELP] (Picturebox.Location) .fail game
Posted: Thu Dec 17, 2009 6:55 pm
Hey,
I'm trying to create a simple game but i need to know how to give a message when the block falls out of the form.
or to right or to left of the form.
i know that you can change the location of the picturebox with
PictureBox1.Location = New Point(100, 100)
i need to make somthing like
If picturebox1.location = (200,200) then
msgbox "FAIL"
end if
somthing like that or
if picturebox1.location.X = 200 and picturebox1.location Y = 200 then
msgbox "Fail"
end if
or
if picturebox1.location.X.Y = (200,200) then... enz
I hope you understand what i mean.
I'm trying to create a simple game but i need to know how to give a message when the block falls out of the form.
or to right or to left of the form.
i know that you can change the location of the picturebox with
PictureBox1.Location = New Point(100, 100)
i need to make somthing like
If picturebox1.location = (200,200) then
msgbox "FAIL"
end if
somthing like that or
if picturebox1.location.X = 200 and picturebox1.location Y = 200 then
msgbox "Fail"
end if
or
if picturebox1.location.X.Y = (200,200) then... enz
I hope you understand what i mean.