I have a database
[CODE]LastBalance,AdmissionFee,ClassFee,Total,Received,Balance[/CODE]
Please tell me how can i get [B]Last Balance[/B] from sql server

Can anyone tell me how to make game in c#.if any one please send me source code
Thanks

can i make myself simple game in c#. if yes then please[COLOR="Red"]send me code[/COLOR] for [COLOR="[B]red"]Tic Tac[/B] Toe[/COLOR]

[CODE]i made calculator it works best but it cannot result out when i enter 10*100%
pleas help me immediately [/CODE]

// THIS IS MY CODE FOR CALCULATOR BUT I HAVE PROBLEM IT CANNOT PERCENTAGE AND SQRT PLEAS HELP ME

[code]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MyCalculator
{
public partial class calculator3 : Form
{
/**=========================**

  • creat bool for all btn(plus,minus,multiply,divid,and equal)
  • ****and make it all false**
    *****==========================**
  • */

    bool plus = false;
    bool minus = false;
    bool multiply = false;
    bool divid = false;
    bool equal = false;
    bool percentage = false;
    
    public calculator3()
    {
        InitializeComponent();
    }
    
    private void panel1_Paint(object sender, PaintEventArgs e)
    {
    
    }
    /****************==========================************
     *Now make if condition that:-xxxxxxxxxxxxxxxxxxxxxxxxz                       
  • if user hit the div,plus,multiply or divisin button
  • veriable do some one for user as wish and it clear the
  • Textbox for entry New value of calculation
  • *****===========================****
    */

    private void btndivision_Click(object sender, EventArgs e)
    {
        if (textBox1.Text == "")
        {
            return;
        }
        else
        {
            divid = true;
            textBox1.Tag = textBox1.Text;
            textBox1.Text = "";
    
        }
    }
    
    private void btnmultiply_Click(object sender, EventArgs e)
    {
        if (textBox1.Text == "")
        {
            return;
        }
        else
        {
            multiply = true;
            textBox1.Tag = textBox1.Text;
            textBox1.Text = "";
        }
    }
    private void btnminus_Click(object sender, EventArgs e)
    {
        if (textBox1.Text == "")
        {
            return;
        }
        else
        {
            minus = true;
            textBox1.Tag = textBox1.Text;
            textBox1.Text = "";
        }
    }
    private void btnplus_Click(object sender, EventArgs e)
    {
        if (textBox1.Text == "")
        {
            return;
        }
        else
        {
            plus = true;
            textBox1.Tag = textBox1.Text;
            textBox1.Text = "";
        }
    
    }
    private void btnequal_Click(object sender, EventArgs ...
james6754 commented: Use code blocks +0