Notes
![]() ![]() Notes - notes.io |
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;
namespace txtbxlblbtn
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// kontrollerin yazı özelliği var
label1.Text = "Mesaj:";
textBox1.Text = "Adınız";
button1.Text = "Gönder/Onayla";
textBox2.Text = "Jokerman";
textBox3.Text = "9";
// button1 sol üste demirlemişken onu
// sağ alt köşeye demirlemek için kod :
button1.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
}
private void button1_Click(object sender, EventArgs e)
{
// txtbx daki yazıyı/string, karakter dizesine alalım
char[] karakterler = textBox1.Text.ToCharArray();
string mesaj = "Mesaj:n";
for(int i = 0; i < karakterler.Length; i++) {
mesaj += karakterler[i].ToString().ToUpper() + "n";// + Environment.NewLine;
}
label1.Text = mesaj;
// Font yaratalım
float emsize = float.Parse( textBox3.Text );
Font yenifont = new Font(textBox2.Text, emsize);
label1.Font = yenifont;
textBox1.Font = yenifont;
// kontroller içine yazılanlara göre kendilerini
// yeniden boyutlandırılar
label1.AutoSize = true;
textBox1.AutoSize = true;
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
// radiobuttun1 seçimi değişti : seçilmiş de olabilir. seçimden çıkarılmış da olabilir
if (Sol.Checked)
{
//seçildiyse yapılacaklar : txtbx3 ü sola hizala
textBox3.TextAlign = HorizontalAlignment.Left;
}
else
{
//seçimden çıkarıldıys yapılacaklar : rb2 mi yoksa rb3 mü secildi???? 2 seçildiyse yazıyı ortalayalım
if (radioButton2.Checked)
{
textBox3.TextAlign = HorizontalAlignment.Center;
}
}
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
if(radioButton2.Checked)
textBox3.TextAlign = HorizontalAlignment.Center;
}
private void radioButton3_CheckedChanged(object sender, EventArgs e)
{
//rb3 seçiliyse textbox3 u sağa yasla
if (radioButton3.Checked) textBox3.TextAlign = HorizontalAlignment.Right;
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
private void radioButton7_CheckedChanged(object sender, EventArgs e)
{
}
}
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team