Quote Originally Posted by Ebiru
VB Code:
  1. Private Sub cmdmmove_KeyPress(KeyAscii As Integer)
  2.         If KeyAscii = 97 And picleftmale.Visible = True Then
  3.         frmupchar.Left = frmupchar.Left - 100
  4.         picleftmale.Visible = True
  5.         picbackmale.Visible = False
  6.         picfrontmale.Visible = False
  7.     ElseIf KeyAscii = 115 And picleftmale.Visible = True Then
  8.         frmupchar.Top = frmupchar.Top + 100
  9.         picfrontmale.Visible = True
  10.         picleftmale.Visible = False
  11.         picbackmale.Visible = False
  12.     ElseIf KeyAscii = 100 And picleftmale.Visible = True Then
  13.         frmupchar.Left = frmupchar.Left + 100
  14.     ElseIf KeyAscii = 119 And picleftmale.Visible = True Then
  15.         frmupchar.Top = frmupchar.Top - 100
  16.         picbackmale.Visible = True
  17.         picleftmale.Visible = False
  18.         picfrontmale.Visible = False
  19.     End If
that code is to make the frm move but the problem is it doesnt want to move anymore. maybe its bacause i have a **** load of stuff on the form. im not sure but ill leave the form so u can take a look
That would be better written like

VB Code:
  1. If picleftmale.Visible = True Then
  2.         Select Case KeyAscii
  3.             Case 97
  4.                 frmupchar.Left = frmupchar.Left - 100
  5.                 picleftmale.Visible = True
  6.                 picbackmale.Visible = False
  7.                 picfrontmale.Visible = False
  8.             Case 115
  9.                 frmupchar.Top = frmupchar.Top + 100
  10.                 picfrontmale.Visible = True
  11.                 picleftmale.Visible = False
  12.                 picbackmale.Visible = False
  13.             Case 100
  14.                 frmupchar.Left = frmupchar.Left + 100
  15.             Case 119
  16.                 frmupchar.Top = frmupchar.Top - 100
  17.                 picbackmale.Visible = True
  18.                 picleftmale.Visible = False
  19.                 picfrontmale.Visible = False
  20.         End Select
  21.     End If