How to make an an image move in silverlight application


  • Hi guys,

    I am just getting to know what silverlight is. I am trying to develop a simple shooting game through a tutorial.

    I have an image in a canvas. I want to move this image using arrow keys. How do I do this ?

    I tried doing this (using

    Me.KeyDown += New KeyEventHandler(AddressOf ShipMove_KeyDown)

    But I am getting an error saying

    "public event keydown(ByVal sender As Object, ByVal e As KeyEventArgs) is an event and cannot be called directly. Use a "RaiseEvent" statement to raise and event"

    How can I rectify this?

    Thanks in advance


    Monday, September 19, 2011 1:54 AM