Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
AnswerRe: Open DateTimePicker Pin
Richard MacCutchan4-Oct-09 23:25
mveRichard MacCutchan4-Oct-09 23:25 
GeneralRe: Open DateTimePicker Pin
tamir9015-Oct-09 2:15
tamir9015-Oct-09 2:15 
GeneralRe: Open DateTimePicker Pin
Richard MacCutchan5-Oct-09 6:23
mveRichard MacCutchan5-Oct-09 6:23 
QuestionSet width or bounds of custom treenode in winforms Pin
Deabdy214-Oct-09 21:55
Deabdy214-Oct-09 21:55 
AnswerRe: Set width or bounds of custom treenode in winforms Pin
Henry Minute5-Oct-09 3:34
Henry Minute5-Oct-09 3:34 
QuestionNeed the code for Randomization of numbers using c# Pin
vasavi.p4-Oct-09 21:51
vasavi.p4-Oct-09 21:51 
AnswerRe: Need the code for Randomization of numbers using c# Pin
Christian Graus4-Oct-09 21:59
protectorChristian Graus4-Oct-09 21:59 
AnswerRe: Need the code for Randomization of numbers using c# Pin
OriginalGriff4-Oct-09 22:05
mveOriginalGriff4-Oct-09 22:05 
Firstly, use the "code block" button to preserve your formatting when posting code fragments - it makes it easier to read.
I have pared your fragment down to the relevent bits:
string Randomnos = string.Empty;
for (int i = 0; i < Quescnt ; i++)
   {
   int RandomNumber = RandomClass.Next();
   if (!Randomnos.ToString().Contains(RandomNumber.ToString() + ","))
      {
      Randomnos = "Not an empty string any more.";
      }
   else
      {
      Quescnt++;
      }
   }


So, when you first enter the loop, and Randomnos == "", what is going to happen?

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

GeneralRe: Need the code for Randomization of numbers using c# Pin
Christian Graus4-Oct-09 22:07
protectorChristian Graus4-Oct-09 22:07 
GeneralRe: Need the code for Randomization of numbers using c# Pin
OriginalGriff4-Oct-09 22:13
mveOriginalGriff4-Oct-09 22:13 
GeneralRe: Need the code for Randomization of numbers using c# Pin
Christian Graus4-Oct-09 22:14
protectorChristian Graus4-Oct-09 22:14 
GeneralRe: Need the code for Randomization of numbers using c# Pin
Skymir5-Oct-09 2:50
Skymir5-Oct-09 2:50 
GeneralRe: Need the code for Randomization of numbers using c# Pin
Henry Minute5-Oct-09 3:40
Henry Minute5-Oct-09 3:40 
GeneralRe: Need the code for Randomization of numbers using c# Pin
OriginalGriff5-Oct-09 5:32
mveOriginalGriff5-Oct-09 5:32 
GeneralRe: Need the code for Randomization of numbers using c# Pin
vasavi.p4-Oct-09 22:11
vasavi.p4-Oct-09 22:11 
GeneralRe: Need the code for Randomization of numbers using c# Pin
Christian Graus4-Oct-09 22:13
protectorChristian Graus4-Oct-09 22:13 
GeneralRe: Need the code for Randomization of numbers using c# Pin
OriginalGriff4-Oct-09 22:14
mveOriginalGriff4-Oct-09 22:14 
JokeRe: Need the code for Randomization of numbers using c# Pin
Christian Graus4-Oct-09 22:21
protectorChristian Graus4-Oct-09 22:21 
JokeRe: Need the code for Randomization of numbers using c# Pin
OriginalGriff4-Oct-09 22:28
mveOriginalGriff4-Oct-09 22:28 
JokeRe: Need the code for Randomization of numbers using c# Pin
nagendrathecoder4-Oct-09 22:55
nagendrathecoder4-Oct-09 22:55 
GeneralRe: Need the code for Randomization of numbers using c# Pin
vasavi.p4-Oct-09 22:54
vasavi.p4-Oct-09 22:54 
GeneralRe: Need the code for Randomization of numbers using c# Pin
OriginalGriff4-Oct-09 23:01
mveOriginalGriff4-Oct-09 23:01 
AnswerRe: Need the code for Randomization of numbers using c# Pin
Richard MacCutchan4-Oct-09 23:23
mveRichard MacCutchan4-Oct-09 23:23 
GeneralRe: Need the code for Randomization of numbers using c# Pin
J4amieC4-Oct-09 23:29
J4amieC4-Oct-09 23:29 
GeneralRe: Need the code for Randomization of numbers using c# Pin
Richard MacCutchan5-Oct-09 0:45
mveRichard MacCutchan5-Oct-09 0:45 

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.