Click here to Skip to main content
16,006,355 members
Home / Discussions / C#
   

C#

 
GeneralRe: please delete thread.... Pin
shwaguy28-Dec-07 7:07
shwaguy28-Dec-07 7:07 
GeneralRe: please delete thread.... Pin
Not Active28-Dec-07 7:25
mentorNot Active28-Dec-07 7:25 
GeneralRe: please delete thread.... Pin
shwaguy28-Dec-07 7:34
shwaguy28-Dec-07 7:34 
GeneralRe: please delete thread.... Pin
Paul Conrad28-Dec-07 7:41
professionalPaul Conrad28-Dec-07 7:41 
GeneralRe: please delete thread.... Pin
shwaguy28-Dec-07 8:32
shwaguy28-Dec-07 8:32 
GeneralRe: please delete thread.... Pin
Paul Conrad28-Dec-07 9:18
professionalPaul Conrad28-Dec-07 9:18 
GeneralGenerating Random Strings from an array and placing them into a textbox.... Pin
DSdragondude28-Dec-07 4:03
DSdragondude28-Dec-07 4:03 
GeneralRe: Generating Random Strings from an array and placing them into a textbox.... Pin
KaptinKrunch28-Dec-07 4:12
KaptinKrunch28-Dec-07 4:12 
Well if you look at what Random.Next() returns, that would be your first spot to check, as its returning a random number and from your code that random number is going to be all over the place.

Read this for generating random numbers:
http://msdn2.microsoft.com/en-us/library/system.random.aspx[^]

Then adjust your code accordingly.

Once you have your random number, use that as your index for your strRandomIdeas array.

Also when comparing string, you should use the string.compare method.

if(string.compare(txb1.Text, txb2.Text) == 0)<br />
{<br />
//strings are equal<br />
}<br />
else<br />
{<br />
//strings not equal<br />
}


Just because we can; does not mean we should.

GeneralRe: Generating Random Strings from an array and placing them into a textbox.... Pin
DSdragondude28-Dec-07 4:27
DSdragondude28-Dec-07 4:27 
AnswerRe: Generating Random Strings from an array and placing them into a textbox.... [modified] Pin
KaptinKrunch28-Dec-07 4:42
KaptinKrunch28-Dec-07 4:42 
GeneralRe: Generating Random Strings from an array and placing them into a textbox.... Pin
Luc Pattyn28-Dec-07 7:20
sitebuilderLuc Pattyn28-Dec-07 7:20 
GeneralDisposing of objects Pin
Gareth H28-Dec-07 2:49
Gareth H28-Dec-07 2:49 
GeneralRe: Disposing of objects Pin
Not Active28-Dec-07 3:35
mentorNot Active28-Dec-07 3:35 
GeneralRe: Disposing of objects Pin
Gareth H28-Dec-07 3:50
Gareth H28-Dec-07 3:50 
GeneralRe: Disposing of objects Pin
Colin Angus Mackay28-Dec-07 3:56
Colin Angus Mackay28-Dec-07 3:56 
GeneralRe: Disposing of objects Pin
Gareth H28-Dec-07 4:09
Gareth H28-Dec-07 4:09 
GeneralRe: Disposing of objects Pin
Colin Angus Mackay28-Dec-07 4:14
Colin Angus Mackay28-Dec-07 4:14 
GeneralRe: Disposing of objects Pin
Not Active28-Dec-07 6:18
mentorNot Active28-Dec-07 6:18 
GeneralRe: Disposing of objects Pin
Paul Conrad28-Dec-07 7:00
professionalPaul Conrad28-Dec-07 7:00 
GeneralRe: Disposing of objects Pin
GuyThiebaut28-Dec-07 3:38
professionalGuyThiebaut28-Dec-07 3:38 
GeneralRe: Disposing of objects Pin
Luc Pattyn28-Dec-07 3:57
sitebuilderLuc Pattyn28-Dec-07 3:57 
GeneralRe: Disposing of objects Pin
Gareth H28-Dec-07 4:10
Gareth H28-Dec-07 4:10 
QuestionExceptions and Backgroundworker Pin
boersnoes28-Dec-07 2:43
boersnoes28-Dec-07 2:43 
GeneralRe: Exceptions and Backgroundworker Pin
KaptinKrunch28-Dec-07 4:26
KaptinKrunch28-Dec-07 4:26 
GeneralRe: Exceptions and Backgroundworker Pin
boersnoes28-Dec-07 5:23
boersnoes28-Dec-07 5:23 

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.