Click here to Skip to main content
15,912,205 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Objection to Dave Kreskowiak Pin
Dave Kreskowiak22-May-09 12:48
mveDave Kreskowiak22-May-09 12:48 
QuestionHow do you initialize and check if image tags are equal to each other? Pin
ymilan19-May-09 14:15
ymilan19-May-09 14:15 
AnswerRe: How do you initialize and check if image tags are equal to each other? Pin
_Damian S_19-May-09 14:59
professional_Damian S_19-May-09 14:59 
QuestionRe: How do you initialize and check if image tags are equal to each other? Pin
ymilan20-May-09 5:30
ymilan20-May-09 5:30 
AnswerRe: How do you initialize and check if image tags are equal to each other? Pin
_Damian S_20-May-09 16:11
professional_Damian S_20-May-09 16:11 
GeneralRe: How do you initialize and check if image tags are equal to each other? Pin
ymilan21-May-09 5:33
ymilan21-May-09 5:33 
GeneralRe: How do you initialize and check if image tags are equal to each other? Pin
_Damian S_21-May-09 15:58
professional_Damian S_21-May-09 15:58 
GeneralRe: How do you initialize and check if image tags are equal to each other? Pin
ymilan23-May-09 7:08
ymilan23-May-09 7:08 
This what I'm trying to do, but what happens is "it is always right" and with "any" card I put into any hearts slot on the right, will put that card right up at hearts(0) and say, you're right. How do I initialize the cards pictures to equal each other, then use next and next for the "for's in the beginning, then question whether the tags = each other. The tag numbers are set in design view.

Here's my code:

Private Sub Hearts_DragDrop(Index As Integer, Source As Control, X As Single, Y As Single)
Dim NewIndex As Integer

For Index = 0 To 12
For NewIndex = 0 To 12
Hearts(Index).Picture = Source.Picture
Source.Picture = Image1(NewIndex).Picture
If Hearts(Index).Tag = Image1(NewIndex).Tag Then
Image1(NewIndex).Drag vbEndDrag
MsgBox ("You're right!")
Exit Sub
Else
Image1(NewIndex).Drag vbCancel
MsgBox ("This card does not belong here")
Exit Sub
End If
Next
Next

End Sub
QuestionIssue With Darag and Drop Image and contaner : VB 2005 Pin
nishkarsh_k19-May-09 3:24
nishkarsh_k19-May-09 3:24 
AnswerRe: Issue With Darag and Drop Image and contaner : VB 2005 Pin
Dave Kreskowiak19-May-09 7:41
mveDave Kreskowiak19-May-09 7:41 
QuestionNeed MySql connection string for vb.net ???? Pin
JC.KaNNaN19-May-09 2:33
JC.KaNNaN19-May-09 2:33 
AnswerRe: Need MySql connection string for vb.net ???? Pin
Luc Pattyn19-May-09 2:40
sitebuilderLuc Pattyn19-May-09 2:40 
GeneralRe: Need MySql connection string for vb.net ???? Pin
Jon_Boy19-May-09 3:22
Jon_Boy19-May-09 3:22 
QuestionSQl SERVER Authentication - Login -For Network LAN Pin
Paramu197319-May-09 2:21
Paramu197319-May-09 2:21 
AnswerRe: SQl SERVER Authentication - Login -For Network LAN Pin
Johan Hakkesteegt19-May-09 3:17
Johan Hakkesteegt19-May-09 3:17 
AnswerRe: SQl SERVER Authentication - Login -For Network LAN Pin
Jon_Boy19-May-09 3:23
Jon_Boy19-May-09 3:23 
Questionhow to comare two audio files Pin
en.Mahdi19-May-09 1:24
en.Mahdi19-May-09 1:24 
AnswerRe: how to comare two audio files Pin
Dave Kreskowiak19-May-09 4:21
mveDave Kreskowiak19-May-09 4:21 
AnswerRe: how to comare two audio files Pin
0x3c019-May-09 5:55
0x3c019-May-09 5:55 
GeneralRe: how to comare two audio files Pin
Dave Kreskowiak19-May-09 7:35
mveDave Kreskowiak19-May-09 7:35 
GeneralRe: how to comare two audio files Pin
0x3c019-May-09 10:20
0x3c019-May-09 10:20 
GeneralRe: how to comare two audio files Pin
Jon_Boy20-May-09 1:44
Jon_Boy20-May-09 1:44 
Questioni modify row no 1 but change modify row no 10 ? Pin
krrish95419-May-09 1:06
krrish95419-May-09 1:06 
AnswerRe: i modify row no 1 but change modify row no 10 ? Pin
Tom Deketelaere19-May-09 1:50
professionalTom Deketelaere19-May-09 1:50 
GeneralRe: i modify row no 1 but change modify row no 10 ? Pin
krrish95420-May-09 3:23
krrish95420-May-09 3:23 

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.