Click here to Skip to main content
15,896,444 members
Home / Discussions / C#
   

C#

 
QuestionHow can we find WindowState changes ? Pin
Mohammad Dayyan12-Sep-08 10:16
Mohammad Dayyan12-Sep-08 10:16 
AnswerRe: How can we find WindowState changes ? Pin
User 665812-Sep-08 10:30
User 665812-Sep-08 10:30 
GeneralRe: How can we find WindowState changes ? Pin
Mohammad Dayyan12-Sep-08 10:53
Mohammad Dayyan12-Sep-08 10:53 
GeneralRe: How can we find WindowState changes ? Pin
User 665812-Sep-08 11:17
User 665812-Sep-08 11:17 
GeneralRe: How can we find WindowState changes ? Pin
Mohammad Dayyan12-Sep-08 11:20
Mohammad Dayyan12-Sep-08 11:20 
QuestionCancel event Pin
netJP12L12-Sep-08 9:38
netJP12L12-Sep-08 9:38 
AnswerRe: Cancel event Pin
User 665812-Sep-08 10:26
User 665812-Sep-08 10:26 
QuestionBlackjack help needed Pin
Member 395831212-Sep-08 8:51
Member 395831212-Sep-08 8:51 
class playingcard
    {
        enum Cards
        {
            Two = 1,
            Three = 2,
            Four = 3,
            Five = 4,
            Six = 5,
            Seven = 6,
            Eight = 7,
            Nine = 8,
            Ten = 9,
            Jack = 10,
            Queen = 10,
            King = 10,
            Ace = 11,
            
        }
        static void Main(string[] args)
        {

            string[] card = new string[] { "Two ", "Three ", "Four ", "Five ", "Six ", "Seven ", "Eight ", "Nine ", "Ten ", "Jack ", "Queen ", " King", "Ace " };
            //        int[] cardvalues ={ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 11 };
            string[] cardSuits = { " Spades", " Heart", " Club", " Diamond" };
            Random random = new Random();
            string Randomcard = card[random.Next(0, card.Length)];
            string RandomcardSuits = cardSuits[random.Next(0, cardSuits.Length)];
            string selectedcard = String.Concat(Randomcard, "of", RandomcardSuits);
            Console.WriteLine(selectedcard);
            int[] vals = (int[])Enum.GetValues(typeof(Cards));
            Console.WriteLine("your points are:{0}",vals[0]);
            Console.ReadLine();

        }

    }


i need help to get the point i am done with random selection of suits and cards now i want to print the point of randomly selected card that values are stored in array int[] vals but i dont know how to display that specific value that is randomly selected please help me with this thank you
AnswerRe: Blackjack help needed Pin
Guffa12-Sep-08 9:08
Guffa12-Sep-08 9:08 
GeneralRe: Blackjack help needed Pin
Member 395831212-Sep-08 9:15
Member 395831212-Sep-08 9:15 
AnswerRe: Blackjack help needed Pin
Robert.C.Cartaino12-Sep-08 9:31
Robert.C.Cartaino12-Sep-08 9:31 
GeneralRe: Blackjack help needed Pin
Member 395831212-Sep-08 9:51
Member 395831212-Sep-08 9:51 
QuestionError: 'Table' does not contain a definition for 'BorderStyle' Pin
A.Asif12-Sep-08 7:57
A.Asif12-Sep-08 7:57 
AnswerRe: Error: 'Table' does not contain a definition for 'BorderStyle' Pin
Guffa12-Sep-08 8:56
Guffa12-Sep-08 8:56 
GeneralRe: Error: 'Table' does not contain a definition for 'BorderStyle' Pin
A.Asif12-Sep-08 9:30
A.Asif12-Sep-08 9:30 
GeneralRe: Error: 'Table' does not contain a definition for 'BorderStyle' Pin
Dave Kreskowiak12-Sep-08 10:50
mveDave Kreskowiak12-Sep-08 10:50 
QuestionC# How to convert a string from English to Japanese ? Pin
SRogers8812-Sep-08 7:07
SRogers8812-Sep-08 7:07 
AnswerRe: C# How to convert a string from English to Japanese ? Pin
Guffa12-Sep-08 9:00
Guffa12-Sep-08 9:00 
GeneralRe: C# How to convert a string from English to Japanese ? Pin
SRogers8812-Sep-08 9:14
SRogers8812-Sep-08 9:14 
GeneralRe: C# How to convert a string from English to Japanese ? Pin
Xargo12-Sep-08 9:41
Xargo12-Sep-08 9:41 
GeneralRe: C# How to convert a string from English to Japanese ? Pin
SRogers8812-Sep-08 9:57
SRogers8812-Sep-08 9:57 
GeneralRe: C# How to convert a string from English to Japanese ? Pin
Dave Kreskowiak12-Sep-08 10:42
mveDave Kreskowiak12-Sep-08 10:42 
AnswerRe: C# How to convert a string from English to Japanese ? Pin
Michael Dunn12-Sep-08 11:35
sitebuilderMichael Dunn12-Sep-08 11:35 
QuestionChanging the ownership of files and folders Pin
lane0p212-Sep-08 6:40
lane0p212-Sep-08 6:40 
AnswerRe: Changing the ownership of files and folders Pin
Mbah Dhaim12-Sep-08 7:18
Mbah Dhaim12-Sep-08 7:18 

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.