Click here to Skip to main content
15,905,233 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to show "Press any key to Continue" Pin
PIEBALDconsult30-Oct-09 7:18
mvePIEBALDconsult30-Oct-09 7:18 
QuestionSQLite Pin
jashimu30-Oct-09 3:04
jashimu30-Oct-09 3:04 
AnswerRe: SQLite Pin
Not Active30-Oct-09 3:20
mentorNot Active30-Oct-09 3:20 
AnswerMessage Closed Pin
30-Oct-09 4:04
stancrm30-Oct-09 4:04 
GeneralRe: SQLite Pin
jashimu30-Oct-09 5:09
jashimu30-Oct-09 5:09 
AnswerRe: SQLite Pin
Amit Patel198530-Oct-09 4:10
Amit Patel198530-Oct-09 4:10 
AnswerRe: SQLite Pin
Eddy Vluggen30-Oct-09 5:53
professionalEddy Vluggen30-Oct-09 5:53 
QuestionHow can I get the use ratio of the network of local PC? Pin
sinron30-Oct-09 2:58
sinron30-Oct-09 2:58 
AnswerMessage Closed Pin
30-Oct-09 4:56
stancrm30-Oct-09 4:56 
GeneralRe: How can I get the use ratio of the network of local PC? Pin
sinron30-Oct-09 20:10
sinron30-Oct-09 20:10 
Questionusing DHCPSetOptionValueV5 to set the option on subnet Pin
Ganesh_T30-Oct-09 2:23
Ganesh_T30-Oct-09 2:23 
QuestionCD Wrinting Pin
Amit Patel198530-Oct-09 2:05
Amit Patel198530-Oct-09 2:05 
AnswerRe: CD Wrinting Pin
Covean30-Oct-09 2:07
Covean30-Oct-09 2:07 
AnswerMessage Closed Pin
30-Oct-09 2:08
stancrm30-Oct-09 2:08 
GeneralRe: CD Wrinting Pin
Amit Patel198530-Oct-09 2:22
Amit Patel198530-Oct-09 2:22 
GeneralRe: CD Wrinting Pin
Henry Minute30-Oct-09 2:29
Henry Minute30-Oct-09 2:29 
AnswerRe: CD Wrinting Pin
Amit Patel198530-Oct-09 3:11
Amit Patel198530-Oct-09 3:11 
Questionhow create quick spark game.. Pin
harish chander baswapuram30-Oct-09 1:57
harish chander baswapuram30-Oct-09 1:57 
AnswerRe: how create quick spark game.. Pin
J4amieC30-Oct-09 2:00
J4amieC30-Oct-09 2:00 
GeneralRe: how create quick spark game.. Pin
Keith Barrow30-Oct-09 4:57
professionalKeith Barrow30-Oct-09 4:57 
AnswerRe: how create quick spark game.. Pin
Covean30-Oct-09 2:04
Covean30-Oct-09 2:04 
AnswerRe: how create quick spark game.. Pin
Eddy Vluggen30-Oct-09 2:22
professionalEddy Vluggen30-Oct-09 2:22 
GeneralRe: how create quick spark game.. Pin
harish chander baswapuram3-Nov-09 2:34
harish chander baswapuram3-Nov-09 2:34 
i have started it off with..making cards with paint..no matter what the card is ...but the focus is on number ...just chk dis out ...i have used random class which generates sequence of numbers on its cards..the user has to click on his deck of his cards ...he has to click on a card if its greater and click on a card whose number is lower than the other card...i am placing the code which i got..
public void Flip()
{
    int j;
    Random r;
    int temp;
    int[] arr = new int[7];
    r = new Random();
    for (j = 0; j < 6; j++)
    {
        int found = 0;
        while (true)
        {
            temp = r.Next(1,7);
            //MessageBox.Show(temp.ToString());
            found = 0;
            for (int i = 0; i <= j; i++)
            {
                // MessageBox.Show("entered " + i.ToString());
                if (temp == arr[i])
                {
                    found = 1;
                }
            }
            if (found == 0)
            {
                arr[j] = temp;
                //MessageBox.Show("Generated new random number as " + temp.ToString());
                break;
            }
        }

            pictureBox1.Image = imageList1.Images[arr[0]];
            pictureBox2.Image = imageList1.Images[arr[1]];
           // pictureBox3.Image = imageList1.Images[arr[2]];
           // pictureBox4.Image = imageList1.Images[arr[3]];

    }
    //MessageBox.Show("The generated random numbers are as follows");
    for (j = 0; j < 7; j++)
    {
        this.Text += arr[j].ToString();
    }

}

GeneralRe: how create quick spark game.. Pin
harish chander baswapuram3-Nov-09 2:35
harish chander baswapuram3-Nov-09 2:35 
GeneralRe: how create quick spark game.. Pin
harish chander baswapuram3-Nov-09 3:37
harish chander baswapuram3-Nov-09 3:37 

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.