I am making a Scrabble game in VB 2008. I made the game board in Fireworks and imported it into VB. The letter tiles are made from buttons in VB.
The problem I am having is with drag drop. I can't get the letter tiles to drag and drop on the equired spot on the gameboard, tried all the examples and am stuck now at this early stage. Any help or advice would be greatly appreciated.
Tried this, no errors but still wont work.
The problem I am having is with drag drop. I can't get the letter tiles to drag and drop on the equired spot on the gameboard, tried all the examples and am stuck now at this early stage. Any help or advice would be greatly appreciated.
VB.NET:
Private Sub ALetter_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles GameBoard.MouseDown
If e.Button = Windows.Forms.MouseButtons.Left Then
Dim pic As PictureBox = CType(sender, PictureBox)
' Invoke the drag and drop operation.
If Not pic.Image Is Nothing Then
pic.DoDragDrop(pic.Image, DragDropEffects.Move Or DragDropEffects.Copy)
End If
End If
ALetter.AllowDrop = True
GameBoard.AllowDrop = True.
Last edited by a moderator: