Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
GeneralRe: Tcp/Ip and Threading Pin
N a v a n e e t h5-Oct-09 15:47
N a v a n e e t h5-Oct-09 15:47 
QuestionOpen DateTimePicker Pin
tamir9014-Oct-09 22:54
tamir9014-Oct-09 22:54 
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 
I have used the following code. when the "Quescnt" and the "max value(Int32.Parse(ds.Tables[1].Rows[cnt-1][0].ToString()))" are equal, its going to infinite loop.

static int TheSeed = (int)DateTime.Now.Ticks;
Random RandomClass = new Random(TheSeed);

string Randomnos = string.Empty;

for (int i = 0; i < Quescnt ; i++)
{
int RandomNumber = RandomClass.Next(Int32.Parse(ds.Tables[1].Rows[0][0].ToString()), Int32.Parse(ds.Tables[1].Rows[cnt-1][0].ToString()));
if (!Randomnos.ToString().Contains(RandomNumber.ToString() + ","))
{
Randomnos = Randomnos + RandomNumber.ToString() + ", ";
}
else
{
Quescnt++;
}
}
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 
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 

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.