Hello. This is my first post here on this forum.

I'm not new to programming, but have finally started learning DirectX for VB.

I could use some help with a simple map editor that I am making just to lay out tiles on a map. It is for an RPG that I am trying to make in the style of the original Zelda.

I decided to represent each tile on the screen (16x11 Zelda size screens, tiles 32x32) with image controls for the map editor. (The game itself is DirectX.) Right now, I just have it so that you have to click each tile to assign an image to the tile. What I would like, is to be able to click on one tile, and while holding down the mouse button, assign that same image to each tile that the mouse moves over. I'm stumped as to how to accomplish this. I've tried using the MouseMove for the image control, but that doesn't seem to do it... maybe I'm just doing it wrong.


This is the code segment for just clicking on a tile. (Tile is the name of the Image Control - which is a control array.) currentTile is declared as a Picture.

Code:
Private Sub Tile_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  If Button = vbLeftButton Then 
    selectedTile = Index 'used for setting properties 
    Tile(Index).Picture = currentTile <----- This is the image assignment 
    TileInfo(Index).tilepic = currentTileImage 
  End If 
End Sub

I tried doing similar code in the MouseMove event for Tile (that I mentioned above didn't work).

Any sugetions would be great. Let me know if I need to explain more.

Thanks.