C#

VISUAL STUDIO 2010 KLAVYE KISAYOLLARI

 Ctrl+K, Ctrl+D
 Dökümanı düzenle
 Ctrl+K, Ctrl+C
 Seçili kodu yorum satırı (Comment) yap
 Ctrl+K, Ctrl+U
 Yorum satırı yapma işlemini geri al (Uncomment)
 Ctrl+K, Ctrl+X
 Hazır kod ekleme (Insert Snippet) seçeneklerini görüntüle
 Ctrl+M
 Kod blogunu (nodunu) aç (kapalıysa), kapat (açıksa)
 Ctrl+M, Ctrl+O
 Bütün kod bloglarını (nodları) kapat
 Shift+F7
 Designer görünümüne geç
 F7
 Kod görünümüne geç
 F5
 Hata ayıklama (Debug) işlemini başlat
 Ctrl+F5
 Hata ayıklama yapmadan başlat
 F11
 Hata ayıklamada sonraki satıra geç
 F10
 Hata ayıklamada sonraki satıra (metotları takip etmeden) geç
 Ctrl+Shift+F5
 Yeniden başlat
 Ctrl+F
 Bul ve Değiştir (Find and Replace) ekranını aç
 Ctrl+H
 Değiştir (Replace) ekranını aç
 F1
 Seçili öğe için arama yap
 F4
 Properties (Özellikler) ekranını aç
 Ctrl+Alt+S
 Server Explorer’ı aç
 Ctrl+Alt+L
 Solution Explorer’ı aç
 Ctrl+Alt+X
 Toolbox’ı (Araçlar) aç
Ctrl+Shift+A
 Add New Item (Projeye yeni bir dosya ekle ) penceresini aç
Shift+Alt+A
 Add Existing Item (Projeye Visual Studio dosyası ekle) penceresini aç
Ctrl+Shift+B
 Projeyi derle (Build)
Ctrl+N
 Yeni bir dosya oluşturma penceresini aç
Ctrl+Shift+N
 Yeni bir proje oluşturma penceresini aç
Ctrl+F4
 Açık olan dosyayı kapat
Shift+Esc
 Toolbox’ı (Araçlar) kapat
Ctrl+F6
 Açık olan dosyalar arasında gez
Ctrl+Tab
 Açık olan dosyalar arasında gezinme penceresini aç
Alt+Shift+F10
 Kütüphaneyi referans olarak ekle
Alt+Shift+Enter
 Tam ekran moduna geç





metin kutusu oluşturma


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 deneme4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button7_Click(object sender, EventArgs e)
        {
            if (textBox1.SelectionLength > 0)
                textBox1.Cut();//secilen alanı kes
            else
                MessageBox.Show("seçili alan yok");
        }

        private void button9_Click(object sender, EventArgs e)
        {
            if (textBox1.SelectionLength > 0)
                textBox1.Copy();//secilen alanı kopyalama
            else
                MessageBox.Show("seçili alan yok");
        }

        private void button8_Click(object sender, EventArgs e)
        {

            textBox1.Paste();//yapıştırma
          
        }

        private void button6_Click(object sender, EventArgs e)
        {
            textBox1.Undo();//yapılan işlemi geri alma
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FontDialog fontDialog1 = new FontDialog();
            if (fontDialog1.ShowDialog() == DialogResult.OK)
            {
                textBox1.Font = fontDialog1.Font;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            ColorDialog colorDialog1 = new ColorDialog();
            if (colorDialog1.ShowDialog() == DialogResult.OK)
            {
                textBox1.ForeColor = colorDialog1.Color;
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            textBox1.Font = new Font(Font, FontStyle.Bold);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            textBox1.Font = new Font(Font, FontStyle.Italic);
        }

        private void button5_Click(object sender, EventArgs e)
        {
            textBox1.Font = new Font(Font, FontStyle.Underline);
        }

      
    
      
      
    }
}






textbox’a tıklanınca textbox temizlensin



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;//http://halilibrahimkurt.blogspot.com.tr/
using System.Text;
using System.Windows.Forms;

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

        private void textBox1_Click(object sender, EventArgs e)
        {
            textBox1.Clear();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            textBox1.Text = "İsminizi buraya yazınız";
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }
    }
}



Yorumlar

Bu blogdaki popüler yayınlar

Java da icon değiştirme

ALANA ÖZGÜ UYĞULAMALAR VE BİLGİSAYAR LABORATUVAR ORTAMLARININ İNCELENMESİ