Click here to Skip to main content
15,898,373 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB6 card game question Pin
ymilan18-May-09 9:22
ymilan18-May-09 9:22 
GeneralRe: VB6 card game question Pin
ymilan2-Jun-09 14:26
ymilan2-Jun-09 14:26 
GeneralRe: VB6 card game question Pin
riced3-Jun-09 4:42
riced3-Jun-09 4:42 
GeneralRe: VB6 card game question Pin
ymilan3-Jun-09 5:10
ymilan3-Jun-09 5:10 
GeneralRe: VB6 card game question Pin
ymilan3-Jun-09 6:28
ymilan3-Jun-09 6:28 
GeneralRe: VB6 card game question Pin
riced3-Jun-09 8:06
riced3-Jun-09 8:06 
GeneralRe: VB6 card game question Pin
ymilan3-Jun-09 9:02
ymilan3-Jun-09 9:02 
GeneralRe: VB6 card game question Pin
riced3-Jun-09 10:04
riced3-Jun-09 10:04 
ymilan wrote:
put images on the left as Automatic and


Then you cannot stop the drop - you can only do that if the mode is Manual and you have a Drag method which allows you to Cancel the drop.

ymilan wrote:
If State = 0 Then
Hearts(Index).Picture = LoadPicture("C:\Program1\redbacking.gif")
Else
If State = 1 Then
Hearts(Index).Picture = Hearts(Index).Picture
Else


This won't work - when you DragDrop is triggered with State = 0 (entering) the Hearts(Index).Picture is changed to the gif. When it is triggered with state = 1 (leaving) it set back to itself i.e. to the gif it was set to when entering.


ymilan wrote:
Does this mean I would put:

Image1(0).Tag = Hearts(0).Tag

Somewhere in the first part of the code?


Have you set Hearts(x).Tags in Designer for all controls? If so and you want the Image(x).Tags to be the same as the Hearts(x) tags, you need to do so in the Form_Load event. But I'm not sure that's what you want.
Is this the complete code? There seems to be something missing e.g. this is not right.

ymilan wrote:
Private Sub Exit_Click()
MsgBox ("Thank you for playing. Good Bye.")
End

End Sub


Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

GeneralRe: VB6 card game question Pin
ymilan3-Jun-09 11:54
ymilan3-Jun-09 11:54 
GeneralRe: VB6 card game question Pin
ymilan4-Jun-09 2:47
ymilan4-Jun-09 2:47 
GeneralRe: VB6 card game question Pin
ymilan2-Jun-09 14:29
ymilan2-Jun-09 14:29 
GeneralRe: VB6 card game question Pin
ymilan2-Jun-09 23:24
ymilan2-Jun-09 23:24 
QuestionAttached to Events Pin
Thayhor6-May-09 8:55
Thayhor6-May-09 8:55 
AnswerRe: Attached to Events Pin
Dave Kreskowiak6-May-09 9:05
mveDave Kreskowiak6-May-09 9:05 
GeneralRe: Attached to Events Pin
Thayhor6-May-09 11:13
Thayhor6-May-09 11:13 
GeneralRe: Attached to Events Pin
Dave Kreskowiak6-May-09 15:30
mveDave Kreskowiak6-May-09 15:30 
GeneralRe: Attached to Events Pin
Thayhor6-May-09 21:05
Thayhor6-May-09 21:05 
GeneralRe: Attached to Events Pin
Dave Kreskowiak7-May-09 1:49
mveDave Kreskowiak7-May-09 1:49 
Questioncheckedlistbox in vb.net Pin
Pankaj-codeproject6-May-09 8:46
Pankaj-codeproject6-May-09 8:46 
AnswerRe: checkedlistbox in vb.net Pin
Dave Kreskowiak6-May-09 9:15
mveDave Kreskowiak6-May-09 9:15 
GeneralRe: checkedlistbox in vb.net Pin
Pankaj-codeproject6-May-09 20:55
Pankaj-codeproject6-May-09 20:55 
QuestionPlaying Music in VB.Net application [modified] Pin
DarkSorrow386-May-09 8:12
DarkSorrow386-May-09 8:12 
AnswerRe: Playing Music in VB.Net application Pin
Dave Kreskowiak6-May-09 8:35
mveDave Kreskowiak6-May-09 8:35 
GeneralRe: Playing Music in VB.Net application Pin
DarkSorrow386-May-09 8:54
DarkSorrow386-May-09 8:54 
GeneralRe: Playing Music in VB.Net application Pin
Dave Kreskowiak6-May-09 8:59
mveDave Kreskowiak6-May-09 8:59 

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.