Textbox’a girilen sayı değeri Göre İsim Yazma Vb

Rooster

only business
Legend Member
Katılım
10 Ağu 2019
Konular
727
Mesajlar
3,205
Çözümler
314
Tepkime puanı
4,997
Konum
Milano
RC Point
0
Kod:
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;https://realitycheats.com/
 
namespace WindowsFormsApplication2
{
 public partial class Form1 : Form
 {
 public Form1()
 {
 InitializeComponent();
 }
 
private void button1_Click(object sender, EventArgs e)
 {
 textBox2.Text = ""https://realitycheats.com/
 string[] gunler = { "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi", "Pazar" };
 int girilen=Convert.ToInt32(textBox1.Text);
 if (girilen > 0 && girilen < 8) textBox2.Text = gunler[girilen - 1].ToString();
 else MessageBox.Show("Lütfen 1-7 arası sayı giriniz");
 //https://realitycheats.com/
 }
}
 

Ekli dosyalar

  • dgf.jpg
    dgf.jpg
    19.8 KB · Görüntüleme: 4
Üst