Bu da sorunumun videosu:
Arkadaşlar ben bir biyografi oluşturma programı yapıyorum. Doğduğunuz yeri girdiğinizde İstanbul ise İstanbul'da, İzmir ise İzmir'de şeklinde ek almalarını istiyorum. 'da ve 'de eki alan illeri yazdım ama 'te ve 'ta eki alan illeri aynı şekilde yazdığımda sorunum düzelmedi. Lütfen yardımlarınızı esirgemeyin.
if (textBox3.Text == "Artvin")
{
if (textBox3.Text == "Balıkesir")
{
if (textBox3.Text == "Bilecik")
{
if (textBox3.Text == "Bingöl")
{
if (textBox3.Text == "Bitlis")
{
if (textBox3.Text == "Çanakkale")
{
if (textBox3.Text == "Denizli")
{
if (textBox3.Text == "Edirne")
{
if (textBox3.Text == "Eskişehir")
{
if (textBox3.Text == "Gümüşhane")
{
if (textBox3.Text == "Hakkari")
{
if (textBox3.Text == "Mersin")
{
if (textBox3.Text == "İzmir")
{
if (textBox3.Text == "Kayseri")
{
if (textBox3.Text == "Kırklareli")
{
if (textBox3.Text == "Kırşehir")
{
if (textBox3.Text == "Kocaeli")
{
if (textBox3.Text == "Mardin")
{
if (textBox3.Text == "Nevşehir")
{
if (textBox3.Text == "Niğde")
{
if (textBox3.Text == "Rize")
{
if (textBox3.Text == "Tunceli")
{
if (textBox3.Text == "Kırıkkale")
{
if (textBox3.Text == "Kilis")
{
if (textBox3.Text == "Osmaniye")
{
if (textBox3.Text == "Düzce"){
}
}
}
}
}
}
}
}
}
}
}
};
}
}
}
}
}
}
}
}
}
}
}
}
}
{
}
}
}
}
{
{
{
{
textBox8.Text = "Adım " + textBox1.Text + ". " + textBox2.Text + " tarihinde " + textBox3.Text + "'de doğdum" + ". " + textBox4.Text + " şehrinde yaşıyorum" + ". " + textBox5.Text + "'nde okudum" + ". " + "Mesleğim " + textBox6.Text + ". " + textBox7.Text + " ilgi alanlarımdan" + ". ";
*Bu şekilde 'da yerine sonu
'de ekiyle bitmesi gereken illeri yazdım
(ve oldu.)if (textBox3.Text == "Gaziantep")
{
if (textBox3.Text == "Bilecik")
{
if (textBox3.Text == "Siirt")
{
if (textBox3.Text == "Karabük")
{
textBox8.Text = "Adım " + textBox1.Text + ". " + textBox2.Text + " tarihinde " + textBox3.Text + "'te doğdum" + ". " + textBox4.Text + " şehrinde yaşıyorum" + ". " + textBox5.Text + "'nde okudum" + ". " + "Mesleğim " + textBox6.Text + ". " + textBox7.Text + " ilgi alanlarımdan" + ". ";
**Daha sonra 'de yerine
'te eki alması gereken illeri yazdım
(ve olmadı.) if (textBox3.Text == "Tokat")
{
if (textBox3.Text == "Uşak")
{
if (textBox3.Text == "Yozgat")
{
if (textBox3.Text == "Zonguldak")
{
if (textBox3.Text == "Bayburt")
{
if (textBox3.Text == "Şırnak")
{
textBox8.Text = "Adım " + textBox1.Text + ". " + textBox2.Text + " tarihinde " + textBox3.Text + "'ta doğdum" + ". " + textBox4.Text + " şehrinde yaşıyorum" + ". " + textBox5.Text + "'nde okudum" + ". " + "Mesleğim " + textBox6.Text + ". " + textBox7.Text + " ilgi alanlarımdan" + ". ";
}
}
}
}
}
}
}
}
}
}
}
{
}
}
}
}
}
***En sonda da 'te yerine
'ta eki alması gereken illeri yazdım
(ve olmadı.)İlk 'de eki alması gereken illeri if ile yaptığımda olmasına rağmen daha sonra 'te ve 'ta eki alması gereken illeri de aynı şekilde yaptığım halde olmamasının sebebi nedir? Lütfen yardım edin.
Bu da sorunumun videosu: