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

C#

 
AnswerRe: How to draw a graph using C# Pin
J a a n s17-Apr-09 1:11
professionalJ a a n s17-Apr-09 1:11 
AnswerRe: How to draw a graph using C# Pin
Russell Jones17-Apr-09 3:25
Russell Jones17-Apr-09 3:25 
QuestionNUnit test Pin
devvvy16-Apr-09 23:00
devvvy16-Apr-09 23:00 
AnswerRe: NUnit test Pin
SeMartens17-Apr-09 0:46
SeMartens17-Apr-09 0:46 
AnswerRe: NUnit test Pin
Luc Pattyn17-Apr-09 1:27
sitebuilderLuc Pattyn17-Apr-09 1:27 
QuestionODBC Excel ConnectionString Problem - Urgent Pin
mishigun16-Apr-09 22:52
mishigun16-Apr-09 22:52 
QuestionHow to change these codes to CHAR to String Pin
john231316-Apr-09 22:36
john231316-Apr-09 22:36 
AnswerRe: How to change these codes to CHAR to String Pin
OriginalGriff17-Apr-09 1:38
mveOriginalGriff17-Apr-09 1:38 
I do not understand the question!

Which codes are you trying to change?
Is there more to read?
Why comment the unnecessary bit? (use xRandom.Next(80) and it will return a number between 0 and 79, just like your modulus)
Why use "% 80" and then expect 80 as a possible result?

BTW: If you use the "code block" button below, it will preserve your formatting, and make fragments easier to read, thus:

while (true)
   {
   // Divide by 80, get remainder
   Random xRandom = new Random((int)(Cosmos.Hardware.Global.TickCount
                    + Cosmos.Hardware.RTC.GetSeconds()));
   int xMagicNo = xRandom.Next() % 80;
   Debugger.Send("Magic Number is " + xMagicNo);
   Console.WriteLine("I am thinking of a number between 0 and 80. What is it?\n");
   while (true)
      {

QuestionConvert Pin
Agweet16-Apr-09 21:39
Agweet16-Apr-09 21:39 
AnswerRe: Convert Pin
musefan16-Apr-09 21:47
musefan16-Apr-09 21:47 
AnswerRe: Convert Pin
OriginalGriff16-Apr-09 21:49
mveOriginalGriff16-Apr-09 21:49 
AnswerRe: Convert Pin
PauloCastilho17-Apr-09 12:43
PauloCastilho17-Apr-09 12:43 
QuestionHow to Insert textfile to be table in sql by c# [modified] Pin
Rakurai16-Apr-09 21:08
Rakurai16-Apr-09 21:08 
AnswerRe: How to Insert textfile to be table in sql by c# Pin
SeMartens16-Apr-09 21:16
SeMartens16-Apr-09 21:16 
GeneralRe: How to Insert textfile to be table in sql by c# Pin
Rakurai17-Apr-09 22:41
Rakurai17-Apr-09 22:41 
AnswerRe: How to Insert textfile to be table in sql by c# Pin
Rajesh Anuhya16-Apr-09 21:40
professionalRajesh Anuhya16-Apr-09 21:40 
QuestionDo you compile the C# project using VS.net IDE Pin
Fired.Fish.Gmail16-Apr-09 20:15
Fired.Fish.Gmail16-Apr-09 20:15 
AnswerRe: Do you compile the C# project using VS.net IDE Pin
Ashfield16-Apr-09 20:53
Ashfield16-Apr-09 20:53 
AnswerRe: Do you compile the C# project using VS.net IDE Pin
Pete O'Hanlon16-Apr-09 22:42
mvePete O'Hanlon16-Apr-09 22:42 
GeneralRe: Do you compile the C# project using VS.net IDE Pin
Fired.Fish.Gmail20-Apr-09 20:54
Fired.Fish.Gmail20-Apr-09 20:54 
QuestionOpen form from another form Pin
piticcotoc16-Apr-09 20:10
piticcotoc16-Apr-09 20:10 
AnswerRe: Open form from another form Pin
Mbah Dhaim16-Apr-09 21:00
Mbah Dhaim16-Apr-09 21:00 
GeneralRe: Open form from another form Pin
piticcotoc16-Apr-09 22:21
piticcotoc16-Apr-09 22:21 
GeneralRe: Open form from another form Pin
Mbah Dhaim17-Apr-09 1:18
Mbah Dhaim17-Apr-09 1:18 
AnswerRe: Open form from another form Pin
daiduongbk17-Apr-09 2:34
daiduongbk17-Apr-09 2:34 

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.