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

Visual Basic

 
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 
GeneralRe: Stumped on VB 6.0 LoadPicture function Pin
Christian Graus26-Apr-09 11:35
protectorChristian Graus26-Apr-09 11:35 
ymilan wrote:
_Image1(x).Index = x - -1


This looks like you're going to end up with x + 1, x - -1 is x + 1.

The best way to shuffle the cards is to get a list from 1 to 52 ( or whatever ). Then create a new list, and put stuff in at random.

Assuming that arrays are 0 indexed in VB.NET ( your code seemed to assume they are 1 indexed and I do not know for sure ), you grab a number between 1 and 52 and you remove the number at that index and put it in your new list. Then you grab a number between 1 and 51 ( because you only have 51 left to shuffle, right ?) and grab the number at that index and push it into your new list. Go all the way down, and you will have a shuffled deck.

Christian Graus

Driven to the arms of OSX by Vista.

"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

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 
GeneralRe: How to select AutoCad 2006 table object using ObjectARX, DotNetArx or by vb.net Pin
Sumit Prakash Sharma26-Apr-09 21:39
professionalSumit Prakash Sharma26-Apr-09 21:39 

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.