C# – form – sayı çevirim işlemleri

Spoidead

Confirmed Memb.
Joined
Oct 21, 2019
Topics
31
Messages
59
Reaction score
403
2’lik sayıları 10’luk sayılara, 10’luk sayıları ise 2’lik sayılara çevirebileceğimiz ufak bir araç

1571686525201.png

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

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

private void button2to10_Click(object sender, EventArgs e)
{

labelsonuc2to10.Text = Convert.ToInt32(textBox1.Text, 2).ToString();

}

private void button10to2_Click(object sender, EventArgs e)
{
labelsonuc10to2.Text = Convert.ToInt32(textBox1.Text, 10).ToString();

}
}
}
 

Top