Click here to Skip to main content
15,919,341 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to find a file in a certain directory Pin
cjfusion25-Apr-09 13:21
cjfusion25-Apr-09 13:21 
GeneralRe: How to find a file in a certain directory Pin
Dave Kreskowiak26-Apr-09 10:51
mveDave Kreskowiak26-Apr-09 10:51 
GeneralRe: How to find a file in a certain directory Pin
cjfusion26-Apr-09 10:59
cjfusion26-Apr-09 10:59 
QuestionStumped on VB 6.0 LoadPicture function Pin
ymilan25-Apr-09 6:26
ymilan25-Apr-09 6:26 
AnswerRe: Stumped on VB 6.0 LoadPicture function Pin
Christian Graus25-Apr-09 11:31
protectorChristian Graus25-Apr-09 11:31 
GeneralRe: Stumped on VB 6.0 LoadPicture function Pin
ymilan25-Apr-09 12:35
ymilan25-Apr-09 12:35 
GeneralRe: Stumped on VB 6.0 LoadPicture function Pin
Christian Graus25-Apr-09 13:26
protectorChristian Graus25-Apr-09 13:26 
GeneralRe: Stumped on VB 6.0 LoadPicture function Pin
ymilan26-Apr-09 6:01
ymilan26-Apr-09 6:01 
Thanks; I'm trying in Net now and learning; however, I copied some code and am trying it out. I have image1 as the array name of images of cards shuffled on the left. Hearts, Clubs, etc. are the arrays on the right. I'm getting lots of errors. Any help or tutorial pages locations would be great. Trying to shuffle cards right now. Much appreciation in advance.

Friend Class Start_Game
Inherits System.Windows.Forms.Form
Dim Index As Integer
Dim value As Integer
Dim suit As String
Dim picturefront As String
Dim position As Integer
Dim shuffled As Boolean
Private Sub Start_Click() Handles Start.Click
Dim count, x As Integer

'sets the actual image1 in suit order used at the start form load

For x = 51 To 0 Step -1
_Image1(x).Index = x - -1
Image1(x).suit = "image1"
If (x - -1) < 10 Then
Image1(x).value = (x - -1)
End If
If (x - -1) > 10 Then
Image1(x).value = 10
End If
Next

'Hearts'
For x = 52 To 40 Step -1
Hearts(x).Index = (x - 39)
Hearts(x).suit = "Hearts"
If (x - 39) < 10 Then
Hearts(x).value = (x - 39)
End If
If (x - 39) > 10 Then
Hearts(x).value = 10
End If
Next x
Exit For

'Clubs

For x = 39 To 27 Step -1
Clubs(x).Index = (x - 26)
Clubs(x).suit = "Clubs"
If (x - 26) < 10 Then
Clubs(x).value = (x - 26)
End If
If (x - 26) > 10 Then
Clubs(x).value = (10)
End If
Next x

'Diamonds

For x = 26 To 14 Step -1
Diamonds(x).Index = (x - 13)
Diamonds(x).suit = "Diamonds"
If (x - 13) < 10 Then
Diamonds(x).value = (x - 13)
End If
If (x - 13) > 10 Then
Diamonds(x).value = (10)
End If
Next x

'Spades

For x = 13 To 1 Step -1

If x < 10 Then
Spades(x).value = x
End If
If x > 10 Then
Spades(x).value = 10
End If
Spades(x).Index = x
Spades(x).suit = "Spades"
Next x

For count = 1 To 52
Image1(count).shuffled = False
Next count

'set back of cards
For x = 1 To 52
Image1(x).pictureback = path & "C:\Project1\backing.gif"
Next x
End Sub
End Sub
End Class
GeneralRe: Stumped on VB 6.0 LoadPicture function Pin
Christian Graus26-Apr-09 11:35
protectorChristian Graus26-Apr-09 11:35 
GeneralRe: Stumped on VB 6.0 LoadPicture function Pin
ymilan27-Apr-09 12:56
ymilan27-Apr-09 12:56 
QuestionFade images in and out Pin
User 584223725-Apr-09 5:51
User 584223725-Apr-09 5:51 
AnswerRe: Fade images in and out Pin
LloydA11125-Apr-09 8:44
LloydA11125-Apr-09 8:44 
GeneralRe: Fade images in and out Pin
User 584223726-Apr-09 0:26
User 584223726-Apr-09 0:26 
QuestionDetermine how long a user has held down on a mouse button Pin
AndyASPVB25-Apr-09 4:21
AndyASPVB25-Apr-09 4:21 
AnswerRe: Determine how long a user has held down on a mouse button Pin
Luc Pattyn25-Apr-09 5:15
sitebuilderLuc Pattyn25-Apr-09 5:15 
GeneralRe: Determine how long a user has held down on a mouse button Pin
AndyASPVB25-Apr-09 10:42
AndyASPVB25-Apr-09 10:42 
GeneralRe: Determine how long a user has held down on a mouse button Pin
Dave Kreskowiak26-Apr-09 10:48
mveDave Kreskowiak26-Apr-09 10:48 
QuestionHow to change the "Validation Rule" property of a filed in a table using VBScript Pin
ADIDADPU25-Apr-09 1:18
ADIDADPU25-Apr-09 1:18 
QuestionDataGridView Refresh not Refreshing Pin
Paul McGann25-Apr-09 0:59
professionalPaul McGann25-Apr-09 0:59 
AnswerRe: DataGridView Refresh not Refreshing Pin
Eddy Vluggen25-Apr-09 3:29
professionalEddy Vluggen25-Apr-09 3:29 
Questionplz help me in finding thealgorithm or a program of circle hough transform in vb Pin
javeria khalid24-Apr-09 20:27
javeria khalid24-Apr-09 20:27 
AnswerRe: plz help me in finding thealgorithm or a program of circle hough transform in vb Pin
Eddy Vluggen25-Apr-09 3:39
professionalEddy Vluggen25-Apr-09 3:39 
AnswerYou posted the same question in "Algorithms" on the 21st. Pin
OriginalGriff25-Apr-09 4:20
mveOriginalGriff25-Apr-09 4:20 
QuestionHow to select AutoCad 2006 table object using ObjectARX, DotNetArx or by vb.net Pin
Sumit Prakash Sharma24-Apr-09 20:18
professionalSumit Prakash Sharma24-Apr-09 20:18 
AnswerRe: How to select AutoCad 2006 table object using ObjectARX, DotNetArx or by vb.net Pin
Dave Kreskowiak26-Apr-09 10:46
mveDave Kreskowiak26-Apr-09 10:46 

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.