دانلود سورس کد جدول ضرب در سی شارپ #C

دانلود سورس کد جدول ضرب در سی شارپ #C
در این برنامه که با زبان برنامه نویسی #C نوشته شده است با کدهای ساده ای جدول ضرب اعداد طراحی شده است.
با اجرای برنامه فرمی ظاهر میشود که در آن میتوان تعداد سطر (1-45) و ستونهای (1- 20) جدول ضرب را به دلخواه انتخاب کرد و با کلیک روی دکمه انجام عمل ضرب جدول ضرب شما ساخته میشود.
برنامه اصلی #C جدول ضرب را در پایین صفحه دانلود کنید.
سورس کد جدول ضرب را در زیر میبینید. این سورس در تمام نسخه های ویژوال استودیو برای شما قابل استفاده می باشد:
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 myMultiplication
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button10_Click(object sender, EventArgs e)
{
this.textBox1.Text = string.Empty;
try
{
for (int i = 1; i <= int.Parse(this.comboBox1.Text); i++)
{
for (int x = 1; x <= int.Parse(this.comboBox2.Text); x++)
{
this.textBox1.Text = string.Concat(this.textBox1.Text, (i * x), " ");
}
this.textBox1.Text = string.Concat(this.textBox1.Text, " ");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
private void comboBox1_DropDown(object sender, EventArgs e)
{
this.comboBox1.Items.Clear();
for (int a = 1; a <= 45; a++)
{
this.comboBox1.Items.Add(a);
}
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void comboBox2_DropDown(object sender, EventArgs e)
{
this.comboBox2.Items.Clear();
for (int b = 1; b <= 20; b++)
{
this.comboBox2.Items.Add(b);
}
}
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("http://WWw.SourceCodes.ir");
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
سورس کد جدول ضرب اعداد با زبان سی شارپ #c را به صورت رایگان دانلود کنید
حجم فایل : 103 KB