Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Precentacion de teclado

167 views

Published on

  • Be the first to comment

  • Be the first to like this

Precentacion de teclado

  1. 1. PRESENTACION:NOMBRE: Diana Mendoza HernándezGrado: 4ºGrupo: BEspecialidad: InformáticaMaestra: Margarita Romero AlvaradoMateria: E.S.I.M.L.P
  2. 2. TECLADO DE COLORESSe crearon 5 commandButtonSe les agrego en la opción Caption las siguientesletras: Q,W,E,R,T.Dar doble clic en el primer command, que seriaQ
  3. 3. Private Sub cmd1_KeyDown(KeyCode As Integer, Shift As Integer)If KeyCode = vbKeyQ Then cmd1.BackColor = vbGreenIf KeyCode = vbKeyW Then cmd2.BackColor = vbYellowIf KeyCode = vbKeyE Then cmd3.BackColor = vbOrangeIf KeyCode = vbKeyR Then cmd4.BackColor = vbRedIf KeyCode = vbKeyT Then cmd5.BackColor = vbBlueEnd SubPrivate Sub cmd1_KeyUp(KeyCode As Integer, Shift As Integer)If KeyCode = vbKeyQ Then cmd1.BackColor = vbButtonFaceIf KeyCode = vbKeyW Then cmd2.BackColor = vbButtonFaceIf KeyCode = vbKeyE Then cmd3.BackColor = vbButtonFaceIf KeyCode = vbKeyR Then cmd4.BackColor = vbButtonFaceIf KeyCode = vbKeyT Then cmd5.BackColor = vbButtonFaceEnd SubPrivate Sub Form_Load()End Sub

×