Click here to Skip to main content
15,914,165 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Help me with weird datagrid checkbox problem Pin
Kevin Nicol5-Dec-06 6:17
Kevin Nicol5-Dec-06 6:17 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kenshino5-Dec-06 10:08
Kenshino5-Dec-06 10:08 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kapil Thakur6-Dec-06 1:06
Kapil Thakur6-Dec-06 1:06 
AnswerRe: Help me with weird datagrid checkbox problem Pin
Kapil Thakur5-Dec-06 20:53
Kapil Thakur5-Dec-06 20:53 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kenshino5-Dec-06 23:57
Kenshino5-Dec-06 23:57 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kapil Thakur6-Dec-06 1:01
Kapil Thakur6-Dec-06 1:01 
QuestionHelp me tune up this class, pls Pin
king gamo5-Dec-06 3:05
king gamo5-Dec-06 3:05 
AnswerRe: Help me tune up this class, pls Pin
Guffa5-Dec-06 5:15
Guffa5-Dec-06 5:15 
I can very well imagine that your code goes into an eternal loop, it's rather buggy. For example, the first random number created for each position in the array will always be replaced by a new random number, as you regard it as a duplicate as it is equal to itself. Also, if a number is the same as the first in the array, you pick a new number and accept it without checking if the new number is the same as the first in the array.

Perhaps not the most efficient, but very simple and straight forward:

Put all the possible numbers in a list. Pick one of them by random and remove it from the list. Repeat until you have the desired number of numbers.

---
b { font-weight: normal; }

Questionclick in datagrid's cell Pin
Smithers-Jones5-Dec-06 2:17
Smithers-Jones5-Dec-06 2:17 
AnswerRe: click in datagrid's cell Pin
Kevin Nicol5-Dec-06 3:01
Kevin Nicol5-Dec-06 3:01 
GeneralRe: click in datagrid's cell Pin
Smithers-Jones5-Dec-06 5:30
Smithers-Jones5-Dec-06 5:30 
QuestionNEED HELP NOW Pin
luna_harp5-Dec-06 2:10
luna_harp5-Dec-06 2:10 
AnswerRe: NEED HELP NOW [modified] Pin
ludoder5-Dec-06 2:59
ludoder5-Dec-06 2:59 
QuestionVisual Basic Script..(VBS) at Wincc Pin
TURKERWEB5-Dec-06 1:16
TURKERWEB5-Dec-06 1:16 
AnswerRe: Visual Basic Script..(VBS) at Wincc Pin
Dave Kreskowiak5-Dec-06 14:36
mveDave Kreskowiak5-Dec-06 14:36 
GeneralRe: Visual Basic Script..(VBS) at Wincc Pin
TURKERWEB5-Dec-06 21:04
TURKERWEB5-Dec-06 21:04 
QuestionI need help Pin
Derar Ziad5-Dec-06 0:49
Derar Ziad5-Dec-06 0:49 
AnswerRe: I need help Pin
Tamimi - Code5-Dec-06 1:03
Tamimi - Code5-Dec-06 1:03 
Questionhow to write code for datagrid sort command...... Pin
tirumal12315-Dec-06 0:47
tirumal12315-Dec-06 0:47 
QuestionFlash in .NET from Pin
IPhilVeryGood5-Dec-06 0:42
IPhilVeryGood5-Dec-06 0:42 
AnswerRe: Flash in .NET from Pin
milkyjoe5-Dec-06 6:11
milkyjoe5-Dec-06 6:11 
Questioni need one example keypress event Program in VB.Net Pin
somagunasekaran4-Dec-06 23:18
somagunasekaran4-Dec-06 23:18 
AnswerRe: i need one example keypress event Program in VB.Net Pin
king gamo5-Dec-06 3:27
king gamo5-Dec-06 3:27 
AnswerRe: i need one example keypress event Program in VB.Net Pin
Dave Kreskowiak5-Dec-06 14:33
mveDave Kreskowiak5-Dec-06 14:33 
QuestionAddHandler Question Pin
Pete Newman4-Dec-06 21:55
Pete Newman4-Dec-06 21:55 

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.