Click here to Skip to main content
15,890,690 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionadding dynamic datagrid inside a datalist web control Pin
bshresth27-Apr-06 17:13
bshresth27-Apr-06 17:13 
QuestionNeed help in converting a code snippet from C# to VB.NET. Pin
Slow Learner27-Apr-06 15:47
Slow Learner27-Apr-06 15:47 
AnswerRe: Need help in converting a code snippet from C# to VB.NET. Pin
atregent27-Apr-06 17:38
atregent27-Apr-06 17:38 
AnswerRe: Need help in converting a code snippet from C# to VB.NET. Pin
Kevin McFarlane28-Apr-06 11:40
Kevin McFarlane28-Apr-06 11:40 
QuestionAny easy way : Random Number Range Pin
Chatura Dilan27-Apr-06 15:40
Chatura Dilan27-Apr-06 15:40 
AnswerRe: Any easy way : Random Number Range Pin
Christian Graus27-Apr-06 17:51
protectorChristian Graus27-Apr-06 17:51 
GeneralRe: Any easy way : Random Number Range Pin
Chatura Dilan27-Apr-06 18:45
Chatura Dilan27-Apr-06 18:45 
GeneralRe: Any easy way : Random Number Range Pin
Christian Graus27-Apr-06 19:00
protectorChristian Graus27-Apr-06 19:00 
Well, you create a List

Dim ints as List<int> = new List<int>()

Then you do a for loop to push the numbers 1-16 in there.

Then you use your random number generate 16 times, each time though you have a lower maximum ( so the last one is moot, you can only generate 1 ). Each time, you pull the digit out of the list at that position, and remove it from the list ( which is why your random number generator drops by 1 each time ). That way, you're pulling out numbers at random positions, and you don't need to check for duplicates.


Christian Graus - Microsoft MVP - C++
AnswerRe: Any easy way : Random Number Range Pin
Roy Heil28-Apr-06 4:03
professionalRoy Heil28-Apr-06 4:03 
AnswerRe: Any easy way : Random Number Range Pin
Chatura Dilan28-Apr-06 15:06
Chatura Dilan28-Apr-06 15:06 
QuestionProblem with Deployment, Win Installer, Setup Pin
HamCoder27-Apr-06 12:00
HamCoder27-Apr-06 12:00 
AnswerRe: Problem with Deployment, Win Installer, Setup Pin
Andrew Bleakley27-Apr-06 12:35
Andrew Bleakley27-Apr-06 12:35 
GeneralRe: Problem with Deployment, Win Installer, Setup Pin
HamCoder28-Apr-06 9:40
HamCoder28-Apr-06 9:40 
QuestionStarting a process from a Windows Service Pin
dlarkin7727-Apr-06 5:22
dlarkin7727-Apr-06 5:22 
AnswerRe: Starting a process from a Windows Service Pin
H@is@here27-Apr-06 23:30
H@is@here27-Apr-06 23:30 
AnswerRe: Starting a process from a Windows Service Pin
spaceus27-Apr-06 23:56
spaceus27-Apr-06 23:56 
QuestionFind File Owner Using .NET 2.0 Pin
is251rd27-Apr-06 5:12
is251rd27-Apr-06 5:12 
AnswerRe: Find File Owner Using .NET 2.0 Pin
kasik27-Apr-06 5:32
kasik27-Apr-06 5:32 
GeneralRe: Find File Owner Using .NET 2.0 Pin
is251rd27-Apr-06 7:52
is251rd27-Apr-06 7:52 
QuestionNew to Programming Pin
mcb1227-Apr-06 4:46
mcb1227-Apr-06 4:46 
AnswerRe: New to Programming Pin
mr_1234527-Apr-06 7:07
mr_1234527-Apr-06 7:07 
GeneralRe: New to Programming Pin
Guffa27-Apr-06 8:38
Guffa27-Apr-06 8:38 
AnswerRe: New to Programming Pin
Guffa27-Apr-06 8:32
Guffa27-Apr-06 8:32 
AnswerRe: New to Programming Pin
Garner T27-Apr-06 15:12
Garner T27-Apr-06 15:12 
GeneralRe: New to Programming Pin
J4amieC27-Apr-06 22:53
J4amieC27-Apr-06 22:53 

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.