1. This forum is in read-only mode.

Visual Basic Code

Discussion in 'Non-Emulation Help' started by jadin72, Feb 11, 2008.

  1. jadin72

    jadin72 Well-Known Member

    does anyone know visula basic code here? i need help on some homeowrk.
    what would be the coding if i needed to check the location of a picturebox named picrocket? when it hits the bottom of the screen and goes off it, it needs to reappear at the top.
     
  2. Loonylion

    Loonylion Administrator Staff Member

    you need to use the .top and .height properties of the picture box, as well as the .screen object. Don't have time to work out any code right now.
     
  3. jadin72

    jadin72 Well-Known Member

    dont worry i got it.

    its under the "location changed" event and its

    If picRocket.Top >= Me.Height Then
    picrocket.Top = -picRocket.Height
    End If

    Thanks anyway.