Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

key press

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-24-2007, 09:33 AM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
Awards Showcase
Beta Tester 
Total Awards: 1
Default key press

Is there a way to detect in one sub without a library for one of these key press's (cUpKey, cDownKey, cRightKey, cLeftKey).


dennishea

edit: figured it out

Sub Form2_KeyPress(key)
If key = cDownKey Then
image1.Top = -400
End If
If key = cUpKey Then
image1.Top = 12
End If
If key = cLeftKey Then
image1.Left = - 400
End If
If key = cRightKey Then
image1.Left = 12
End If
End Sub

going to change to select though.
__________________
Using 6.90
dennishea

Last edited by dennishea : 12-24-2007 at 09:54 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ContextMenu and center button long press N1c0_ds Questions (Windows Mobile) 1 11-03-2008 03:56 AM
Hold SHIFT, and press TAB on Desktop app superbabicka Questions (Windows Mobile) 3 04-30-2008 04:52 PM


All times are GMT. The time now is 01:39 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0