Tuesday, September 13, 2011

Car specification

\


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace carspecf
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            richTextBox1.Text = "";
            string st = "TECHNICAL SPECIFICATION" +"\n\n";
            richTextBox1.Text = st;
           
            richTextBox1.Text += textBox1.Text.ToUpper()+"\n" ;
            richTextBox1.Text += label1.Text.ToUpper()+"        : " + textBox2.Text +" Cylinder "+ "\n\n";
            richTextBox1.Text += label2.Text.ToUpper()+"        : " + textBox3.Text+" CC " + "\n\n";
            richTextBox1.Text += label3.Text.ToUpper()+"        : "  + textBox4.Text+" Bhp " + "\n\n";
            richTextBox1.Text += label4.Text.ToUpper()+"        : "  + textBox5.Text +" Nm " +"\n\n";
            richTextBox1.Text += label5.Text.ToUpper()+ "        : "+ textBox6.Text +" km/L "+ "\n\n";
            richTextBox1.Text += label6.Text.ToUpper()+"        : "  + textBox7.Text + " Speed manual "+"\n\n";
            richTextBox1.Text += label7.Text.ToUpper()+ "        : "+ textBox8.Text + "(F) Drum (R Drum) "+"\n\n";
            richTextBox1.Text += label8.Text.ToUpper() + "       : " + textBox9.Text + "\n\n";
            richTextBox1.Text += label9.Text.ToUpper() + "       : " + textBox10.Text + " mm " + "\n\n";
            richTextBox1.Text += label10.Text.ToUpper() + "      : " + textBox11.Text + " kg " + "\n\n";
            richTextBox1.Text += label11.Text.ToUpper() + "      : " + textBox12.Text + " ltr " + "\n\n";
            richTextBox1.Text += label12.Text.ToUpper() + "      : " + textBox13.Text + "ltr"+ "\n\n";
            richTextBox1.Text += label13.Text.ToUpper()+"        : " + textBox14.Text + "\n\n";
            }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

       
    }
}

No comments:

Post a Comment