Click here to Skip to main content
15,894,546 members
Articles / Multimedia / GDI+

HiLow Card Game

Rate me:
Please Sign up or sign in to vote.
2.67/5 (8 votes)
14 May 20073 min read 94.4K   2.7K   22  
An article on creating a simple card game with C#, using updated card.dll wrapper class
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Publicjoe.Windows
{
  public partial class RulesForm : Form
  {
    public RulesForm()
    {
      InitializeComponent();
    }

    private void Rules_Load(object sender, EventArgs e)
    {
      try
      {
        richTextBox1.LoadFile(Application.StartupPath + @"\rules.rtf", RichTextBoxStreamType.RichText);
      }
      catch
      {
      }
    }
  }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions