Click here to Skip to main content
15,897,718 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiongetting sql server-2005 backups from vb.net 2005 Pin
kishore lkumar2-Nov-07 20:35
kishore lkumar2-Nov-07 20:35 
QuestionLooping through a array of strcutres Pin
Benny_Lava2-Nov-07 19:37
Benny_Lava2-Nov-07 19:37 
AnswerRe: Looping through a array of strcutres Pin
Christian Graus2-Nov-07 21:02
protectorChristian Graus2-Nov-07 21:02 
AnswerRe: Looping through a array of strcutres Pin
MohammadAmiry3-Nov-07 0:15
MohammadAmiry3-Nov-07 0:15 
QuestionIssue with adding data to grid Pin
nishkarsh_k2-Nov-07 16:42
nishkarsh_k2-Nov-07 16:42 
AnswerRe: Issue with adding data to grid Pin
Andy_L_J4-Nov-07 17:06
Andy_L_J4-Nov-07 17:06 
Questionplease help me to find bug for a lotto project Pin
anpm2-Nov-07 14:07
anpm2-Nov-07 14:07 
AnswerRe: please help me to find bug for a lotto project [modified] Pin
Luc Pattyn2-Nov-07 14:18
sitebuilderLuc Pattyn2-Nov-07 14:18 
Hi,

if you don't provide an explicit seed a random number generator will use the current time
as a seed, so everytime you create a new Random (within the same millisecond or so) it
will generate the same sequence.
Solution: insert a Thread.Sleep(1000) and/or provide a variable seed somehow
[added] or avoid creating new Randoms all the time (just have a single static one and
keep using it) [/added].

Smile | :)


-- modified at 20:36 Friday 2nd November, 2007

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


GeneralRe: please help me to find bug for a lotto project Pin
anpm2-Nov-07 18:38
anpm2-Nov-07 18:38 
QuestionLISTBox Pin
roger68972-Nov-07 10:47
roger68972-Nov-07 10:47 
AnswerRe: LISTBox Pin
Christian Graus2-Nov-07 21:03
protectorChristian Graus2-Nov-07 21:03 
GeneralRe: LISTBox Pin
roger68972-Nov-07 22:20
roger68972-Nov-07 22:20 
GeneralRe: LISTBox Pin
Christian Graus2-Nov-07 22:52
protectorChristian Graus2-Nov-07 22:52 
QuestionWant to inherit one property to another Pin
Brad^2-Nov-07 10:07
Brad^2-Nov-07 10:07 
AnswerRe: Want to inherit one property to another Pin
BrokenS2-Nov-07 11:18
BrokenS2-Nov-07 11:18 
GeneralRe: Want to inherit one property to another Pin
Brad^2-Nov-07 11:21
Brad^2-Nov-07 11:21 
QuestionWeb Service in VB.Net created XML doc Pin
kendo172-Nov-07 9:58
kendo172-Nov-07 9:58 
QuestionHelp with an CR report... Pin
CCG32-Nov-07 9:48
CCG32-Nov-07 9:48 
QuestionHelp on Submit Form via Email Pin
cyepes272-Nov-07 9:30
cyepes272-Nov-07 9:30 
AnswerRe: Help on Submit Form via Email Pin
Christian Graus2-Nov-07 21:05
protectorChristian Graus2-Nov-07 21:05 
Questionhow to send an xml file wrapped in a cookie to other website using httpwebrequest? Pin
dreddy72-Nov-07 6:35
dreddy72-Nov-07 6:35 
QuestionIs strongly typed database code worth it? It's giving me a headache! Pin
MattPenner2-Nov-07 6:25
MattPenner2-Nov-07 6:25 
QuestionWork in Emulator, not work on Device Pin
Hurricane30002-Nov-07 6:25
Hurricane30002-Nov-07 6:25 
AnswerRe: Work in Emulator, not work on Device Pin
Hurricane30003-Nov-07 8:30
Hurricane30003-Nov-07 8:30 
QuestionXP Visual Style and Themes on windows forms Pin
Julius++2-Nov-07 3:27
Julius++2-Nov-07 3:27 

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.