| Article | 
|---|
| dropDownList Nesnesinde Seçili Itemi Label de Göstermek Merhaba arkadaşlar bu makalemizde dropDownList nesnesinde seçili item değerini label nesnesinde göstereceğiz. DropDownList nesnesinin Properties kısmından Items e tıklıyoruz.
 | 
| Python’da Label KullanımıMerhaba arkadaşlar bu makalemizde Python’da label kullanımı anlatacağım. Formumuza tkinter ekliyoruz. Title ile formumuza başlık giriyoruz.  Label’in text kısmına label de görünecek metini yazıyoruz.
 | 
| Çalışma Anında Form, Button, Label Oluşturmakİlk önce Form1 inize Button nesnesi ekleyin. Button1_Click() olayına aşağıdaki kodları yazacağız.Bir makalenin daha sonuna geldik. Bir sonraki makalede görüşmek dileğiyle. Hoşçakalın. Bahadır ŞAHİN
 | 
| Labele Resim EklemeBu makalemizde label nesnesinde resim göstereceğiz. Aşağıdaki şekli inceleyin.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        
        public Form1()
        {
            InitializeComponent();
            Label label1 = new System.Windows.Forms.Label(); 
            this.SuspendLayout();
            label1.Image = new Bitmap("C:\\image.jpg");
            label1.ImageAlign = System.Drawing.ContentAlignment.TopRight;
            label1.Location = new System.Drawing.Point(20, 9);
            label1.Name = "label1";
            label1.Size = new System.Drawing.Size(100, 128);
            label1.TabIndex = 0;
            label1.Text = "Labele resim ekleme..Bahadır ŞAHİN";
            label1.ForeColor = Color.White;
            this.Controls.Add(label1);
            this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Text = "Labele Resim Ekleme";
            this.ResumeLayout(false);
        }
   }
}
//Bir sonraki makalede görüşmek üzere. Bahadır ŞAHİN
 | 
| Label de Kayan YazıBu örneğimizde Label de kayan yazıya bakacağız. Formunuza 1 adet Label ve Timer
nesnesi ekleyin.
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 WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            timer1.Start();
            label1.Text = "Bahadır ŞAHİN "; 
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            label1.Text = label1.Text.Substring(1) + label1.Text[0].ToString();
        }
    }
}
//Bir sonraki makalede buluşmak üzere. Bahadır ŞAHİN
 | 
| Label de Yazı KaydırmaLabelin içerisinde yazdığımız stringi kaydıracağız. Formunuza 1 adet Label ve Timer ekleyin. Aşağıdaki kodları yazın.
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 WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            timer1.Start();
            label1.Text = "Bahadır ŞAHİN"; 
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            label1.Text = label1.Text.Substring(1) + label1.Text[0].ToString();
        }
    }
}
//Bir sonraki makalede buluşmak üzere. Bahadır ŞAHİN
 | 
| Çalışma Anında Button ve Label OluşturmakBu örneğimizde çalışma anında button ve label oluşturacağız. Çalışma anında istediğiniz kadar Button ve Label oluşturabilirsiniz Aşağıdaki şekili inceleyin.
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 WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            Button  button1=new Button();
            Label label1=new Label();
        this.Controls.Add(button1);
        this.Controls.Add(label1);
        button1.Text = "Çalışma Anında Button Ekleme";
        button1.Size = new System.Drawing.Size(100, 60);
        label1.Text = "Çalışma Anında Label Oluşturma";
        label1.Width = 200;
        label1.Left = 100;
        }
    }
}
//Bir sonraki makalede görüşmek üzere...Bahadır
 | 
| NumericUpDown ile Label Font Boyutunu DeğiştirmeBu örnekte numericupdown kullanarak, font boyutunu istediğimiz şekilde büyüteceğiz.
Aşağıdaki şekli inceleyin.
Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        NumericUpDown1.Minimum = 0
        NumericUpDown1.Maximum = 100
        Label1.Text = "Merhaba Dünya..."
    End Sub
    Private Sub NumericUpDown1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown1.ValueChanged
        Dim deger As Integer
        deger = NumericUpDown1.Value
        Label1.Font = New Font("Times New Roman", deger, FontStyle.Regular)
    End Sub
End Class
Bir sonraki makalede görüşmek üzere. Bahadır ŞAHİN
 | 
| Çalışma Anında Label OluşturmakAşağıdaki şekillerde gösterildiği gibi çalışma anında label oluşturacağız. 
Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim labels As New Label
        labels.Name = "labeller"
        labels.Text = "Çalışma Anında Label Oluşturmak- Örnek"
        labels.Size = New System.Drawing.Size(500, 100)
        labels.Font = New System.Drawing.Font("Tahoma", 10, FontStyle.Bold)
        labels.Location = New Point(1, 40)
        labels.Visible = True
        Me.Controls.Add(labels)
    End Sub
End Class
Bir sonraki makalede görüşmek üzere. Bahadır ŞAHİN
 | 
| Label de Kayan YazıImports vb = Microsoft.VisualBasic i formunuza ekleyin. Bu örnekte Labeldeki yazıyı kaydıracağız. Formunuza Timer nesnesi ekleyin.
Imports vb = Microsoft.VisualBasic
Public Class Form1
    Dim ilkharf, yazi
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Enabled = True
        Timer1.Interval = 250
        Label1.Text = "      Bahadır ŞAHİN      "
    End Sub
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        ilkharf = vb.Left(Label1.Text, 1)
        yazi = vb.Right(Label1.Text, Len(Label1.Text) - 1)
        Label1.Text = yazi + ilkharf
    End Sub
End Class
‘Bir sonraki makalede görüşmek üzere. Bahadır ŞAHİN
 | 
| Linklabel KullanımıBu örnekte linklabel kullanımını göreceğiz. Forma 1 adet Linklabel ekleyin. Linklabel ile formunuzdan istediğiniz web sitesine veya mail adresine link verebilirsiniz...Bahadirsa
ublic Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        With Me
            .Size = New System.Drawing.Size(380, 114)
            .Location = New Point(200, 150)
            .Text = "LinkLabel...Bahadirsa"
            .MaximizeBox = False
        End With
        LinkLabel1.Text = "http://bahadirsam.somee.com"
        LinkLabel1.Font = New Font("Verdana", 12, FontStyle.Regular)
        LinkLabel1.Links.Add(0, LinkLabel1.Text.Length, "http://bahadirsam.somee.com")
    End Sub
    Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
        System.Diagnostics.Process.Start(e.Link.LinkData)
    End Sub
    
End Class
Bir sonraki makalede buluşmak üzere... Bahadirsa
 |