Results 1 to 4 of 4

Thread: {RESOLVED} [2005] keypress

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2005
    Posts
    28

    {RESOLVED} [2005] keypress

    i have just changed from using vb6 to vb2005 and i am trying to catch up with some of the vb6 ways of programming like. when you press left on the arrow keys the labbel moves to the left, and so on.

    this is how i would have done it in vb



    vb6 Code:
    1. Dim KeyAscii As Integer
    2.         Select Case KeyAscii
    3.             Case 73
    4.                 label1.Top = label1.Top + 1000
    5.             Case 77
    6.                 label1.Top = label1.Top - 120
    7.  
    8.             Case 74
    9.                 label1.Top = label1.Left + 120
    10.  
    11.             Case 76
    12.                 label1.Top = label1.Left - 120
    13.  
    14.         End Select
    15.     End Sub

    how would i do the same in vb2005,

    ps. i have searched the forums and carnt see much their to help me most of the results was how tot do it in vb6.

    regards, pip

    thank you in advance.
    Last edited by pipwilky; Jul 28th, 2007 at 01:31 PM. Reason: {RESOLVED}

    Currnet Projects Working on
    Games
    CrossWord (finsihed)
    Programms
    Ip IM

    an more i will up date later


    Please Mark all resloved posts with [RESLOVED] and a green tick.

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