Click here to Skip to main content
15,896,118 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNeed Help with a TIC Tac Toe game Pin
elindel21-Apr-09 18:15
elindel21-Apr-09 18:15 
AnswerRe: Need Help with a TIC Tac Toe game Pin
Christian Graus21-Apr-09 18:38
protectorChristian Graus21-Apr-09 18:38 
GeneralRe: Need Help with a TIC Tac Toe game Pin
Dalek Dave21-Apr-09 21:33
professionalDalek Dave21-Apr-09 21:33 
AnswerRe: Need Help with a TIC Tac Toe game Pin
Eddy Vluggen21-Apr-09 22:14
professionalEddy Vluggen21-Apr-09 22:14 
Questionhow do i use my window base application remotly? Pin
r_mohd21-Apr-09 15:46
r_mohd21-Apr-09 15:46 
AnswerRe: how do i use my window base application remotly? Pin
Christian Graus21-Apr-09 15:56
protectorChristian Graus21-Apr-09 15:56 
AnswerRe: how do i use my window base application remotly? Pin
Yusuf21-Apr-09 16:03
Yusuf21-Apr-09 16:03 
QuestionNeed Help with Visual Basic Drag and Drop Pin
ymilan21-Apr-09 13:15
ymilan21-Apr-09 13:15 
I'm setting up a card game; solitaire, and I want to drag one card on top of a bitmap that looks like a blank card. I want the card image to stay on top IF it matches a certain variable (array of an image). I have the source images as Image1(52) array of cards, and the target images as Hearts(12). I will do Clubs, etc., but am just starting with hearts suit to test. Here is my code so far. I'm having difficulty on trying to figure out how to drag the image and copy it on top of another image if it equals that image's properties (array #).

Private Sub Image1_DragDrop(Index As Integer, Source As Control, X As Single, Y As Single)
Index = 12
If TypeOf Source Is Image Then
Image1(Index).Picture = Source.Picture
End If

End Sub
Private Sub Image1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Index = 12
If Button = vbLeftButton Then
Image1(Index).Drag vbBeginDrag
End If

End Sub
Private Sub Image1_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
Index = 12
If Button = vbLeftButton Then
Image1(Index).Drag vbEndDrag
End If

End Sub

Any ideas would be appreciated.
AnswerRe: Need Help with Visual Basic Drag and Drop Pin
Eddy Vluggen21-Apr-09 13:36
professionalEddy Vluggen21-Apr-09 13:36 
GeneralRe: Need Help with Visual Basic Drag and Drop Pin
ymilan22-Apr-09 17:38
ymilan22-Apr-09 17:38 
GeneralRe: Need Help with Visual Basic Drag and Drop Pin
Eddy Vluggen22-Apr-09 20:53
professionalEddy Vluggen22-Apr-09 20:53 
GeneralRe: Need Help with Visual Basic Drag and Drop Pin
ymilan23-Apr-09 10:45
ymilan23-Apr-09 10:45 
GeneralRe: Need Help with Visual Basic Drag and Drop Pin
Eddy Vluggen23-Apr-09 20:49
professionalEddy Vluggen23-Apr-09 20:49 
GeneralRe: Need Help with Visual Basic Drag and Drop Pin
ymilan24-Apr-09 5:41
ymilan24-Apr-09 5:41 
GeneralRe: Need Help with Visual Basic Drag and Drop Pin
ymilan24-Apr-09 6:06
ymilan24-Apr-09 6:06 
GeneralRe: Need Help with Visual Basic Drag and Drop Pin
Eddy Vluggen24-Apr-09 8:45
professionalEddy Vluggen24-Apr-09 8:45 
Questionhow to:create a SIMPLE windows explorer like app. Pin
trujade21-Apr-09 6:54
trujade21-Apr-09 6:54 
AnswerRe: how to:create a SIMPLE windows explorer like app. Pin
Luc Pattyn21-Apr-09 7:08
sitebuilderLuc Pattyn21-Apr-09 7:08 
GeneralRe: how to:create a SIMPLE windows explorer like app. Pin
Henry Minute21-Apr-09 8:24
Henry Minute21-Apr-09 8:24 
AnswerRe: how to:create a SIMPLE windows explorer like app. Pin
Henry Minute21-Apr-09 8:26
Henry Minute21-Apr-09 8:26 
AnswerRe: how to:create a SIMPLE windows explorer like app. Pin
Eddy Vluggen21-Apr-09 8:50
professionalEddy Vluggen21-Apr-09 8:50 
AnswerRe: how to:create a SIMPLE windows explorer like app. Pin
Yusuf21-Apr-09 11:23
Yusuf21-Apr-09 11:23 
QuestionThe runtime has encountered a fatal error. Pin
Nanda_MR21-Apr-09 2:11
Nanda_MR21-Apr-09 2:11 
AnswerRe: The runtime has encountered a fatal error. Pin
Henry Minute21-Apr-09 4:56
Henry Minute21-Apr-09 4:56 
GeneralRe: The runtime has encountered a fatal error. Pin
Nanda_MR21-Apr-09 18:16
Nanda_MR21-Apr-09 18:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.