Results 1 to 2 of 2

Thread: there is what i want to change

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    6

    there is what i want to change

    like that this is i dont want its 1 of the form of my program
    and if someone could make that with the least code possible its perfect
    Attached Files Attached Files

  2. #2
    Fanatic Member Alien_poo's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    668
    1. Where are you from?
    2. I dont exactly understand what you want but your code was messed up a bit, I fixed it up:
    VB Code:
    1. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    2.     If KeyCode = vbKeyDown Then
    3.         alien.Top = alien.Top + 500
    4.     ElseIf KeyCode = vbKeyUp Then
    5.         alien.Top = alien.Top - 500
    6.     ElseIf KeyCode = vbKeyLeft Then
    7.         alien.Left = alien.Left - 500
    8.     ElseIf KeyCode = vbKeyRight Then
    9.         alien.Left = alien.Left + 500
    10.     End If
    11.    
    12.     If alien.Left < 0 Then
    13.         alien.Left = alien.Left + 500
    14.     ElseIf alien.Left > 11300 Then
    15.         alien.Left = alien.Left - 500
    16.     ElseIf alien.Top > 7800 Then
    17.         alien.Top = alien.Top - 500
    18.     ElseIf alien.Top < 0 Then
    19.         alien.Top = alien.Top + 500
    20.     End If
    21. End Sub
    "A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
    "First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
    - Robert Matthews, Science Correspondent

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width