<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aykut Fatih GÜVEN - Web Günlüğü &#187; Csharp (C#)</title>
	<atom:link href="http://www.afguven.com/kategori/csharp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.afguven.com</link>
	<description>Bir başka WordPress sitesi</description>
	<lastBuildDate>Fri, 27 Apr 2012 18:54:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>C# &#8216; da Dört Basamaklı Sayıyı Nasıl Okuturuz?</title>
		<link>http://www.afguven.com/c-da-dort-basamakli-sayiyi-nasil-okuturuz.html</link>
		<comments>http://www.afguven.com/c-da-dort-basamakli-sayiyi-nasil-okuturuz.html#comments</comments>
		<pubDate>Thu, 15 Mar 2012 18:03:45 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[C sharpda basamak degerlerini yazıya çevirme]]></category>
		<category><![CDATA[C sharpda Dört basamaklı sayıyı okutma]]></category>
		<category><![CDATA[C# ' da sayıyı okutma]]></category>
		<category><![CDATA[C# sayıyı nasıl okuturuz]]></category>
		<category><![CDATA[C# Switch case kullanımı]]></category>
		<category><![CDATA[DörtBasamaklı Sayıyı Okutma]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1553</guid>
		<description><![CDATA[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 DortBasamakliSayiOkuma { public partial class Form1 : Form { public Form1() { InitializeComponent(); } string Oku(int rakam, int basamak) { string yazi = ""; switch (rakam) { case 1: if (basamak == 1) yazi += "Bir"; break; case [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.afguven.com/c-228-adet-ornek-program-kodlari-ve-projeler.html/csharp-2" rel="attachment wp-att-502"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-502" title="csharp" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp1.png" alt="" width="229" height="152" /></a></p>
<p><span id="more-1553"></span><a href="http://www.afguven.com/c-da-dort-basamakli-sayiyi-nasil-okuturuz.html/dortbasamaklisayiokuma" rel="attachment wp-att-1554"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-1554" title="dortbasamaklisayiokuma" src="http://www.afguven.com/wp-content/uploads/2012/03/dortbasamaklisayiokuma.jpg" alt="" width="425" height="251" /></a><!--more--></p>
<pre class="brush: csharp">
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 DortBasamakliSayiOkuma
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        string Oku(int rakam, int basamak)
        {
            string yazi = "";
            switch (rakam)
            {
                case 1:
                    if (basamak == 1)
                        yazi += "Bir";
                    break;
                case 2:
                    yazi += "İki";
                    break;
                case 3:
                    yazi += "Üç";
                    break;
                case 4:
                    yazi += "Dört";
                    break;
                case 5:
                    yazi += "Beş";
                    break;
                case 6:
                    yazi += "Altı";
                    break;
                case 7:
                    yazi += "Yedi";
                    break;
                case 8:
                    yazi += "Sekiz";
                    break;
                case 9:
                    yazi += "Dokuz";
                    break;
            }
            return yazi;
        }
        private void btnOku_Click(object sender, EventArgs e)
        {
            int sayi = 0, birler, onlar, yuzler, binler;
            string yazi = "";
            try
            {
                sayi = Convert.ToInt32(txtSayi.Text);
            }
            catch
            {
                MessageBox.Show("Lütfen sayı Giriniz");
                // bir üst satırda hata verdik artık okuma işlemi devam etmesin burada sonlansın..
                return;
                //İçerisinde bulunduğumuz olay sonlanır devam etmez.
            }
            binler = sayi / 1000;
            yuzler = (sayi - binler * 1000) / 100;
            onlar = (sayi - yuzler * 100 - binler * 1000) / 10;
            birler = (sayi - yuzler * 100 - binler * 1000) % 10;
            if (binler != 0)
                yazi += Oku(binler, 1000) + " Bin ";
            if (yuzler != 0)
                yazi += Oku(yuzler, 100) + " Yüz ";
            switch (onlar)
            {
                case 1:
                    yazi += "On ";
                    break;
                case 2:
                    yazi += "Yirmi ";
                    break;
                case 3:
                    yazi += "Otuz ";
                    break;
                case 4:
                    yazi += "Kırk ";
                    break;
                case 5:
                    yazi += "Elli ";
                    break;
                case 6:
                    yazi += "Altmış ";
                    break;
                case 7:
                    yazi += "Yetmiş ";
                    break;
                case 8:
                    yazi += "Seksen ";
                    break;
                case 9:
                    yazi += "Doksan ";
                    break;
            }
            yazi += Oku(birler, 1);
            MessageBox.Show(yazi);
            lbl.Text = "            Girilen Sayı :\n" + yazi;
        }
        private void BtnKapat_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.afguven.com");
        }
    }
}
</pre>
<p>Dosyayı <a href="http://www.afguven.com/depo/dersnot/paylas/DortBasamakliSayiOkuma.rar" target="_blank"><span><span>İndir</span></span></a><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/c-da-dort-basamakli-sayiyi-nasil-okuturuz.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C#&#8217; da Formun Görülebilirliğini (Opacity) Nasıl Değiştiririz?</title>
		<link>http://www.afguven.com/c-da-formun-gorulebilirligini-opacity-nasil-degistiririz.html</link>
		<comments>http://www.afguven.com/c-da-formun-gorulebilirligini-opacity-nasil-degistiririz.html#comments</comments>
		<pubDate>Thu, 15 Mar 2012 17:40:10 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[C shaprda opacity değiştirme]]></category>
		<category><![CDATA[C# ' da Formun Görünebilirliği]]></category>
		<category><![CDATA[C# ' da Formun Görünebilirliği değiştirme]]></category>
		<category><![CDATA[Opacity]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1550</guid>
		<description><![CDATA[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 FadeInFadeOut { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { //Formun Görülebilirliğini Opacity Özelliği ile set edebiliriz. //0-1 arasında bir deger alabilir //this.Opacity = 0.5; //yavas yavas [...]]]></description>
			<content:encoded><![CDATA[<p><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-636" title="csharp1" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp11.png" alt="" width="256" height="256" /><a href="http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-vize-soru-ve-cevaplari.html/csharp1" rel="attachment wp-att-636"><span id="more-1550"></span><br />
</a></p>
<pre class="brush: csharp">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 FadeInFadeOut
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            //Formun Görülebilirliğini Opacity Özelliği ile set edebiliriz.
            //0-1 arasında bir deger alabilir
            //this.Opacity = 0.5;
            //yavas yavas görünürlük artsın
            this.Opacity = 0;
            //timer çalışmaya başlasın opacity azar azar artsın
            timer1.Start();
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            //opacity degeri artsın
            //opacity degeri 1 e ulaşınca artış dursun timer stop etsin
            if (this.Opacity == 1)
                timer1.Stop();
            else
                this.Opacity += 0.1;
        }
        private void timer2_Tick(object sender, EventArgs e)
        {
            if (this.Opacity == 0)
            {
                timer2.Stop();
                this.Close();
            }
            else
                this.Opacity -= 0.1;
        }
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            //önce kapatma işlemini iptal et ardından opacity değerini azaltmaya başla
            if (this.Opacity != 0)
            {
                e.Cancel = true;
                timer2.Start();
                //this.Opacity = 1;
            }
        }
    }
}</pre>
<p>Dosyayı <a href="http://www.afguven.com/depo/dersnot/paylas/FadeInFadeOut.rar" target="_blank"><span><span>İndir</span></span></a><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/c-da-formun-gorulebilirligini-opacity-nasil-degistiririz.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# &#8216;da İkinci Dereceden Denklemin Çözümünü Bulalım</title>
		<link>http://www.afguven.com/c-da-ikinci-dereceden-denklemin-cozumunu-bulalim.html</link>
		<comments>http://www.afguven.com/c-da-ikinci-dereceden-denklemin-cozumunu-bulalim.html#comments</comments>
		<pubDate>Tue, 13 Mar 2012 15:58:26 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[2.Dereceden Denklemin Çözümü]]></category>
		<category><![CDATA[2.Dereceden Denklemin Çözümü C# ' da]]></category>
		<category><![CDATA[ikinci derceden denklemin çözümü]]></category>
		<category><![CDATA[ikinci dereceden denklemin c sharpda çözümü]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1545</guid>
		<description><![CDATA[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 ikinciderecedenklemcozumu { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void BtnKokBul_Click(object sender, EventArgs e) { try { double a, b, c, delta, x1, x2, z; a = Convert.ToDouble(TxtA.Text); //TxtA'nin içine yazılanı double'a [...]]]></description>
			<content:encoded><![CDATA[<p><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-502" title="csharp" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp1.png" alt="" width="229" height="152" /><a href="http://www.afguven.com/c-228-adet-ornek-program-kodlari-ve-projeler.html/csharp-2" rel="attachment wp-att-502"><br />
<span id="more-1545"></span></a><a href="http://www.afguven.com/c-da-ikinci-dereceden-denklemin-cozumunu-bulalim.html/ikinciderecedendenkleminkokleri" rel="attachment wp-att-1546"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-1546" title="ikinciderecedendenkleminkokleri" src="http://www.afguven.com/wp-content/uploads/2012/03/ikinciderecedendenkleminkokleri.jpg" alt="" width="516" height="246" /></a></p>
<pre class="brush: csharp">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 ikinciderecedenklemcozumu
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void BtnKokBul_Click(object sender, EventArgs e)
        {
            try
            {
                double a, b, c, delta, x1, x2, z;
                a = Convert.ToDouble(TxtA.Text); //TxtA'nin içine yazılanı double'a çevirip a'ya atar.
                b = Convert.ToDouble(TxtB.Text);
                c = Convert.ToDouble(TxtC.Text);
                delta = b * b - 4 * a * c;
                if (delta &lt; 0)
                {
                    delta = Math.Abs(delta); //delta'nın mutlak değerini alır.
                    z = Math.Sqrt(delta) / (2 * a); //Math.Sqrt(delta) kodu, delta'nın karekökünü alır.
                    if (b == 0) //delta &lt; 0 ve b == 0
                    {
                        TxtX1.Text = "+" + z.ToString() + "i";
                        TxtX2.Text = "-" + z.ToString() + "i";
                    }
                    else //delta &lt; 0 ve b!= 0                     {                         TxtX1.Text = Convert.ToString((-b / (2 * a))) + " + " + z.ToString() + "i";                         TxtX2.Text = Convert.ToString((-b / (2 * a))) + " - " + z.ToString() + "i";                     }                 }                 else //delta &gt;= 0
                {
                    x1 = (-b + Math.Sqrt(delta)) / (2 * a);
                    x2 = (-b - Math.Sqrt(delta)) / (2 * a);
                    TxtX1.Text = x1.ToString();
                    TxtX2.Text = x2.ToString();
                }
            }
            catch
            {
                MessageBox.Show("Hata oluştu.");
            }
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            TxtA.Text = "1";
            TxtB.Text = "4";
            TxtC.Text= "-8";
            TxtX1.Text = "Birinci Kök";
            TxtX2.Text = "İkinci Kök";
        }
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.afguven.com");
        }
        private void BtnTemizle_Click_1(object sender, EventArgs e)
        {
            TxtA.Text = "1";
            TxtB.Text = "4";
            TxtC.Text = "-8";
            TxtX1.Text = "Birinci Kök";
            TxtX2.Text = "İkinci Kök";
        }
        private void BtnBilgi_Click(object sender, EventArgs e)
        {
            //2.Dereceden Denklemin Çözüm Metodunu yazalım.
        MessageBox.Show("1 * x² + 4 * x -8 = 0 =&gt; x1=(-b+karakök(Delta)/2*a ) ;  x2=(-b-karakök(Delta)/2*a ) ;\n x₁ = (-4 + 6,928203230275509)/2 =1,46410161513775  \n x₂ = (-4 – 6,928203230275509)/2=-5,46410161513775");
        }
        private void BtnKapat_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}</pre>
<p>Dosyayı <a href="http://www.afguven.com/depo/dersnot/paylas/ikinciderecedenklemcozumu.rar" target="_blank"><span><span>İndir</span></span></a><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/c-da-ikinci-dereceden-denklemin-cozumunu-bulalim.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# &#8216; da Genel Form Uygulaması</title>
		<link>http://www.afguven.com/c-da-genel-form-uygulamasi.html</link>
		<comments>http://www.afguven.com/c-da-genel-form-uygulamasi.html#comments</comments>
		<pubDate>Fri, 09 Mar 2012 16:21:28 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[Genel C sharp Form Uygulaması]]></category>
		<category><![CDATA[Genel C sharp Uygulaması]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1538</guid>
		<description><![CDATA[using System; using System.Collections.Generic; using System.ComponentModel; using System.Collections; //Arraylist İçin Eklemelisiniz. using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace GenelFormUygulamasi { public partial class Form1 : Form { ArrayList TcNo = new ArrayList(); string aranan; int yer = -1; Random rastgele = new Random(); public Form1() { InitializeComponent(); } private void BtnHafizayaEkle_Click(object [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-vize-soru-ve-cevaplari.html/csharp1" rel="attachment wp-att-636"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-636" title="csharp1" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp11.png" alt="" width="256" height="256" /></a><br />
<span id="more-1538"></span><a href="http://www.afguven.com/c-da-genel-form-uygulamasi.html/formuygulamasi" rel="attachment wp-att-1539"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-1539" title="formuygulamasi" src="http://www.afguven.com/wp-content/uploads/2012/03/formuygulamasi.jpg" alt="" width="515" height="485" /></a><br />
<!--more--></p>
<pre class="brush: csharp">

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Collections; //Arraylist İçin Eklemelisiniz.
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GenelFormUygulamasi
{
    public partial class Form1 : Form
    {
        ArrayList TcNo = new ArrayList();
        string aranan;
        int yer = -1;
        Random rastgele = new Random();

        public Form1()
        {
            InitializeComponent();
        }

        private void BtnHafizayaEkle_Click(object sender, EventArgs e)
        {
            TcNo.Add(TxtKimlikNo.Text +"-"+ TxtAd.Text.PadLeft(10) + TxtSoyad.Text.PadLeft(15) +"-"+ maskedTxtTelNo.Text.PadLeft(20));
        }

        private void BtnListeyeEkle_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            foreach (string numara in TcNo)
            {
                listBox1.Items.Add(numara);
            }
        }

        private void BtnRastgeleSecim_Click(object sender, EventArgs e)
        {
            int sayi;

            sayi = rastgele.Next(TcNo.Count);

            MessageBox.Show("Kayıtlar Arasından  " + TcNo[sayi].ToString() + " numaralı kullanıcı şanslı kullanıcı olarak seçilmiştir");
        }

        private void BtnSil_Click(object sender, EventArgs e)
        {
            listBox1.Items.Remove(listBox1.SelectedItem);
        }
        private void BtnAra_Click(object sender, EventArgs e)
        {
            aranan = textBox4.Text;
            yer = listBox1.FindStringExact(aranan);
            if (yer < 0)
            {
                yer = listBox1.FindString(aranan);
                if (yer < 0)
                    MessageBox.Show("Bulunamadı");
            }
            if (yer >= 0)
                listBox1.SelectedIndex = yer;
        }

        private void BtnSonrakiniBul_Click(object sender, EventArgs e)
        {
            if (yer < listBox1.Items.Count - 1)
            {
                yer = listBox1.FindString(aranan, yer);
                if (yer >= 0)
                    listBox1.SelectedIndex = yer;
            }
        }
    }
}
</pre>
<p>Dosyayı <a href="http://www.afguven.com/depo/dersnot/paylas/GenelFormUygulamasi.rar" target="_blank"><span><span>İndir</span></span></a><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/c-da-genel-form-uygulamasi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C#&#8217; da Checkedlistbox Kullanımı</title>
		<link>http://www.afguven.com/c-da-checkedlistbox-kullanimi.html</link>
		<comments>http://www.afguven.com/c-da-checkedlistbox-kullanimi.html#comments</comments>
		<pubDate>Fri, 09 Mar 2012 15:12:06 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[C sharpda Checkedlistbox kullanımı]]></category>
		<category><![CDATA[c# ' da checkedlistbox]]></category>
		<category><![CDATA[checkedlistbox]]></category>
		<category><![CDATA[checkedlistbox kullanımı]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1532</guid>
		<description><![CDATA[Çoklu seçme şansını bize sunan CHECKEDLISTBOX bileşeni birçok durumda gerçekten işimizi kolaylaştırmaktadır. Normal listbox ile kullanımı hemen hemen benzerdir. Selectedindex: Seçilen liste elemanının sıra numarasını verir. Items.Count: Listedeki tüm elemanların toplam sayısını verir. Textbox1.Text=Checkedlistbox1. Items.Count Checkeditems.count: Seçili olan elemanların sayısını verir. Selecteditem: Hangi check seçili ise onun adını verir. Items.Contains: Tüm liste içeriğini parantez içinde verilen değerle kontrol eder. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.afguven.com/c-228-adet-ornek-program-kodlari-ve-projeler.html/csharp-2" rel="attachment wp-att-502"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-502" title="csharp" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp1.png" alt="" width="229" height="152" /></a></p>
<p>Çoklu seçme şansını bize sunan CHECKEDLISTBOX bileşeni birçok durumda gerçekten işimizi kolaylaştırmaktadır. Normal listbox ile kullanımı hemen hemen benzerdir.</p>
<p><strong>Selectedindex:</strong> Seçilen liste elemanının sıra numarasını verir.<br />
<strong>Items.Count:</strong> Listedeki tüm elemanların toplam sayısını verir. Textbox1.Text=Checkedlistbox1. Items.Count<br />
<strong>Checkeditems.count:</strong> Seçili olan elemanların sayısını verir.<br />
<strong>Selecteditem</strong>: Hangi check seçili ise onun adını verir.<br />
<strong>Items.Contains:</strong> Tüm liste içeriğini parantez içinde verilen değerle kontrol eder. Deger varsa true, yoksa false dır.</p>
<p><span id="more-1532"></span><a href="http://www.afguven.com/c-da-checkedlistbox-kullanimi.html/checkedlistboxkullanim" rel="attachment wp-att-1535"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-1535" title="CheckedListboxKullanim" src="http://www.afguven.com/wp-content/uploads/2012/03/CheckedListboxKullanim.jpg" alt="" width="495" height="318" /></a><!--more--></p>
<pre class="brush: csharp">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 CheckedListboxKullanim
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            if (checkedListBox1.Items.Count == 0)
            {
                BtnSecim.Enabled = false;
                BtnSecileniKaldir.Enabled= false;
            }
        }
        int i = 0;

        private void BtnYeniEkle_Click(object sender, EventArgs e)
        {
             i++;
            checkedListBox1.Items.Add(i.ToString());

            if (checkedListBox1.Items.Count &gt; 0)
            {
                BtnSecim.Enabled = true;
                BtnSecim.Text = "Tümünü Seç";
            }
        }
        int selectedIndex;

        private void checkedListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            selectedIndex = checkedListBox1.SelectedIndex;
            BtnSecileniKaldir.Enabled = true;
        }

        private void BtnSecileniKaldir_Click(object sender, EventArgs e)
        {
            i = checkedListBox1.Items.Count - 1;

            do
            {
                if (checkedListBox1.GetItemChecked(i))
                    checkedListBox1.Items.RemoveAt(i);

                i--;
            } while (i &gt;= 0);

        }

        private void BtnSecim_Click(object sender, EventArgs e)
        {
            bool state = false;

            if (BtnSecim.Text.Equals("Tümünü Seç"))
            {
                state = true;
                BtnSecim.Text = "Seçimi Kaldır";

            }
            else if (BtnSecim.Text.Equals("Seçimi Kaldır"))
            {
                state = false;
                BtnSecim.Text = "Tümünü Seç";
            }

            for (int i = 0; i &lt; checkedListBox1.Items.Count; i++)
            {
                checkedListBox1.SetItemChecked(i, state);

            }
        }
        }
    }</pre>
<p>Dosyayı <a href="http://www.afguven.com/depo/dersnot/paylas/CheckedListboxKullanim.rar" target="_blank"><span><span>İndir</span></span></a><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/c-da-checkedlistbox-kullanimi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# &#8216;da Keypress Event  Kullanımı</title>
		<link>http://www.afguven.com/c-da-keypress-event-kullanimi.html</link>
		<comments>http://www.afguven.com/c-da-keypress-event-kullanimi.html#comments</comments>
		<pubDate>Fri, 02 Mar 2012 21:49:54 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[C # ' da keypress event kullanımı]]></category>
		<category><![CDATA[c shaprda keypress event kullanımı]]></category>
		<category><![CDATA[keypress]]></category>
		<category><![CDATA[keypress event]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1494</guid>
		<description><![CDATA[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 WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void txt_Sayilar_KeyPress(object sender, KeyPressEventArgs e) { // keypress event'i text'e bir tuş basıldığında çalışan eventtir. // e.KeyChar ile hangi karaktere basıldığını ascii karşılıgını [...]]]></description>
			<content:encoded><![CDATA[<p><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-502" title="csharp" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp1.png" alt="" width="229" height="152" /><br />
<span id="more-1494"></span></p>
<pre class="brush: csharp">

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 WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void txt_Sayilar_KeyPress(object sender, KeyPressEventArgs e)
        {
            // keypress event'i text'e bir tuş basıldığında çalışan eventtir.
            // e.KeyChar ile hangi karaktere basıldığını ascii karşılıgını bulabiliriz.
            // sadece sayilara izin vermek için 0 ile 9 un ascii karşılığını bulmamız gerek.
            // 0'ın ascii karşılığı 48      9'un ascii karşılığı ise 57
            //hangi tuşa basildığını hafızaya alalım
            int basilantus = Convert.ToInt32(e.KeyChar); //stringden çevirme yapmadığımız için int.parse kullanamayız.
            // eğer 48 ile 57 arası DEĞİLSE tuş basımını iptal etmek gerekir.
            // backspace'in çalışması için   || basilantus == 8    koşulunu ekledik.
            if (!(basilantus >= 48 &#038;&#038; basilantus <= 57 || basilantus == 8))
            {
             // baştaki ! işareti tüm ifadeyi tersine çevirir.
                e.Handled = true;
             // handled = true yapmamız basılan tuşu geçersiz saymak içindir.
            }
        }
        private void txt_Yazilar_KeyPress(object sender, KeyPressEventArgs e)
        {
            // sadece harflerin yazılmasını istiyorsak üstteki koşulun tam tersini yapmamız gerek.
            //hangi tuşa basildığını hafızaya alalım
            int basilantus = Convert.ToInt32(e.KeyChar); //stringden çevirme yapmadığımız için int.parse kullanamayız.
            // 48 ile 57 arası tuş basımını iptal etmek gerekir. çünkü bu sayı araları klavyede 0 ile 9 sayıların basıldığına işarettir.
            if ((basilantus >= 48 &#038;&#038; basilantus <= 57))
            {
                // baştaki ! işareti tüm ifadeyi tersine çevirdiği için onu kaldırdık.
                e.Handled = true;
                // handled = true yapmamız basılan tuşu geçersiz saymak içindir.
            }
        }
        private void txt_maxint_KeyPress(object sender, KeyPressEventArgs e)
        {
            // text'e girilen sayının integera sığmayacak kadar büyükse işlem yapmamasını sağlamalıyız.
            // bu yüzden ilk öncelikle harf yazılmasını önlemek gerek.
            int basilantus = Convert.ToInt32(e.KeyChar);
            // eğer 48 ile 57 arası DEĞİLSE tuş basımını iptal etmek gerekir.
            if (!(basilantus >= 48 &#038;&#038; basilantus <= 57))
            {
                // tuş basımını engelledik.
                e.Handled = true;
            }
            else
            {
                // eğer sayıya basılmışsa burası çalışacaktır.
                // ve burda bir kontrol yapmamız gerek.
                // text'e girilen değer acaba int'e sığacakmı yoksa program hatamı(istisna) verecek.
                // eğer hata(istisna) vericekse tuş basımını engellemeliyiz.
                try
                {
                    // int değerini aşarsa bu satır hataya(istisna) neden olucaktır.
                    int textdekiDeger = int.Parse(txt_maxint.Text);
                }
                catch(OverflowException)
                {
                    // hata eğer overflow ise yani taşmışssa tuş basımını engelledik.
                    // istersek son olabileceği rakamı text e güncelletebiliriz.
                    txt_maxint.Text = int.MaxValue.ToString();
                    e.Handled = true;
                }
           }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
</pre>
<p>Dosyayı <a href="http://www.afguven.com/depo/dersnot/paylas/Keypress.rar" target="_blank"><span><span>İndir</span></span></a><!--more--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/c-da-keypress-event-kullanimi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Visual Studio 11 (ISO) Ultimate Beta</title>
		<link>http://www.afguven.com/microsoft-visual-studio-11-iso-ultimate-beta.html</link>
		<comments>http://www.afguven.com/microsoft-visual-studio-11-iso-ultimate-beta.html#comments</comments>
		<pubDate>Fri, 02 Mar 2012 14:50:37 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[2011 visual studio]]></category>
		<category><![CDATA[visual studio11]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1488</guid>
		<description><![CDATA[&#160; Windows 8 Consumer Preview (Tüketici Önizlemesi) sürümünün ardından uygulama geliştiricilerin Windows 8’den aktif olarak yararlanabilmeleri için en önemli araçlardan birisi olan Visual Studio 11’in beta sürümü de download’a sunuldu. &#160; Uygulama geliştiriciler tarafındanbüyük bir arzuyla beklenen Visual Studio 11 Beta artık serverlarda yerini aldı ve indirilebiliyor. Metro stil Windows 8 uygulamaları geliştirmek için mevcut [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>Windows 8 Consumer Preview (Tüketici Önizlemesi) sürümünün ardından uygulama geliştiricilerin Windows 8’den aktif olarak yararlanabilmeleri için en önemli araçlardan birisi olan Visual Studio 11’in beta sürümü de download’a sunuldu.</p>
<p>&nbsp;</p>
<p>Uygulama geliştiriciler tarafındanbüyük bir arzuyla beklenen Visual Studio 11 Beta artık serverlarda yerini aldı ve indirilebiliyor. Metro stil Windows 8 uygulamaları geliştirmek için mevcut en iyi ürün olan Visual Studio 11, kendisi de Metro arayüzü ile karşımıza çıkıyor. Bizlere yeni bir deneyim sunan en son sürüm Visual Studio gayet sade bir arayüze sahip.</p>
<p>&nbsp;</p>
<p>Visual Studio 11 download sayfasına aşağıdaki linkten ulaşabilirsiniz.</p>
<p>&nbsp;</p>
<p><a title="http://www.microsoft.com/visualstudio/11/en-us" href="http://www.microsoft.com/visualstudio/11/en-us">http://www.microsoft.com/visualstudio/11/en-us</a></p>
<p><a href="http://www.afguven.com/microsoft-visual-studio-11-iso-ultimate-beta.html/2011vs" rel="attachment wp-att-1489"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-1489" title="2011vs" src="http://www.afguven.com/wp-content/uploads/2012/03/2011vs.png" alt="" width="440" height="220" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/microsoft-visual-studio-11-iso-ultimate-beta.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2011-2012 Bahar Yarıyılı Görsel Programlama-I  II.Vize Proje Ödevi</title>
		<link>http://www.afguven.com/2011-2012-bahar-yariyili-gorsel-programlama-i-ii-vize-proje-odevi.html</link>
		<comments>http://www.afguven.com/2011-2012-bahar-yariyili-gorsel-programlama-i-ii-vize-proje-odevi.html#comments</comments>
		<pubDate>Sun, 26 Feb 2012 14:44:48 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[Görsel Programlama]]></category>
		<category><![CDATA[Görsel Programlama II.vize Ödevi]]></category>
		<category><![CDATA[Görsel Programlama Proje Ödevi]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1480</guid>
		<description><![CDATA[2011-2012 Bahar Yarıyılı Görsel Programlama-I  II.Vize Proje Ödevi için aşağıdaki  Linki Tıklayınız]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-vize-soru-ve-cevaplari.html/csharp1" rel="attachment wp-att-636"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-636" title="csharp1" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp11.png" alt="" width="256" height="256" /></a>2011-2012 Bahar Yarıyılı Görsel Programlama-I  II.Vize Proje Ödevi için aşağıdaki  Linki <a href="http://www.afguven.com/verdigim-dersler/bahar-donemi/gorsel-programlama-1/p1-projeler" target="_blank">Tıklayınız</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/2011-2012-bahar-yariyili-gorsel-programlama-i-ii-vize-proje-odevi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2011-2012 Güz Yarıyılı Bilgisayar Teknolojileri Bölümü Görsel Programlama-I Final Sınav Sonuçları</title>
		<link>http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-final-sinav-sonuclari.html</link>
		<comments>http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-final-sinav-sonuclari.html#comments</comments>
		<pubDate>Wed, 11 Jan 2012 20:56:20 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[görsel porgramlama final sınav sonuçları]]></category>
		<category><![CDATA[görsel progralamla sınav sonuçları]]></category>
		<category><![CDATA[sınav conuçları cshapar]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1386</guid>
		<description><![CDATA[2011-2012 Güz Yarıyılı Bilgisayar Teknolojileri Bölümü Görsel Programlama-I Final Sınav  Sonuçları]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-vize-soru-ve-cevaplari.html/csharp1" rel="attachment wp-att-636"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-636" title="csharp1" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp11.png" alt="" width="256" height="256" /></a>2011-2012 Güz Yarıyılı Bilgisayar Teknolojileri Bölümü Görsel Programlama-I <a href="http://www.afguven.com/verdigim-dersler/bahar-donemi/gorsel-programlama-1/p1-sinav-sorulari">Final Sınav  Sonuçları</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-final-sinav-sonuclari.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2011-2012 Güz Yarıyılı Bilgisayar Teknolojileri Bölümü Görsel Programlama-I Final Sınav Soru ve Cevapları</title>
		<link>http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-final-sinav-soru-ve-cevaplari.html</link>
		<comments>http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-final-sinav-soru-ve-cevaplari.html#comments</comments>
		<pubDate>Mon, 09 Jan 2012 16:35:01 +0000</pubDate>
		<dc:creator>Aykut Fatih GÜVEN</dc:creator>
				<category><![CDATA[Csharp (C#)]]></category>
		<category><![CDATA[c sharp sınav]]></category>
		<category><![CDATA[c sharp sınavı]]></category>
		<category><![CDATA[c# sınav soru ve cevapları]]></category>
		<category><![CDATA[görsel programlama sıanv soru ve cevaplar]]></category>
		<category><![CDATA[s sharp sınav soru ve cevapları]]></category>

		<guid isPermaLink="false">http://www.afguven.com/?p=1173</guid>
		<description><![CDATA[2011-2012 Güz Yarıyılı Bilgisayar Teknolojileri Bölümü Görsel Programlama-I Final Sınav  Soru ve Cevapları]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-vize-soru-ve-cevaplari.html/csharp1" rel="attachment wp-att-636"><img onload="NcodeImageResizer.createOn(this);" class="alignleft size-full wp-image-636" title="csharp1" src="http://www.afguven.com/wp-content/uploads/2011/11/csharp11.png" alt="" width="256" height="256" /></a>2011-2012 Güz Yarıyılı Bilgisayar Teknolojileri Bölümü Görsel Programlama-I <a href="http://www.afguven.com/verdigim-dersler/bahar-donemi/gorsel-programlama-1/p1-sinav-sorulari">Final Sınav  Soru ve Cevapları</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.afguven.com/2011-2012-guz-yariyili-bilgisayar-teknolojileri-bolumu-gorsel-programlama-i-final-sinav-soru-ve-cevaplari.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

