NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

public partial class Form1 : Form
{
int yer;
string str;
public Form1()
{
InitializeComponent();
}

private void yeniToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Text = "Not defteri -adsız";
richTextBox1.Text = "";
}

private void açToolStripMenuItem_Click(object sender, EventArgs e)
{
//Aç düğmesi
if (openFileDialog1.ShowDialog() == DialogResult.OK)
try //önce rtf olarak açmayı dene
{
richTextBox1.LoadFile(openFileDialog1.FileName,
RichTextBoxStreamType.RichText);
}
catch
{
try //olmazsa düz metin olarak açmayı dene
{
richTextBox1.LoadFile(openFileDialog1.FileName,
RichTextBoxStreamType.PlainText);
}
catch //o da olmazsa hata ver
{
MessageBox.Show(openFileDialog1.FileName + " Bu dosya açılamadı");
}
}
}

private void farklıKaydetToolStripMenuItem_Click(object sender, EventArgs e)
{
//Farklı kaydet düğmesi
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
richTextBox1.SaveFile(saveFileDialog1.FileName,
RichTextBoxStreamType.RichText);
}

private void jKToolStripMenuItem_Click(object sender, EventArgs e)
{
//Kaydet düğmesi
if (openFileDialog1.FileName != "") //Bir dosya açılmışsa
//aynı isimle kaydet
richTextBox1.SaveFile(openFileDialog1.FileName,
RichTextBoxStreamType.RichText);
else //dosya açılmamışsa
//SaveDialog penceresi ile dosya adı sor
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
//O adla kaydet
richTextBox1.SaveFile(saveFileDialog1.FileName,
RichTextBoxStreamType.RichText);
}

private void çıkışToolStripMenuItem_Click(object sender, EventArgs e)
{
Close();
}

private void yazdırToolStripMenuItem_Click(object sender, EventArgs e)
{
printDialog1.ShowDialog();

}

private void geriAlToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Undo();
}

private void kesToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Cut();
}

private void kopyalaToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Copy();
}

private void yapıştırToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Paste();
}

private void silToolStripMenuItem_Click(object sender, EventArgs e)
{
richTextBox1.Clear();
}

private void saatTarihToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Text = string.Format(" {0}", DateTime.Now);
}

private void yazıTipiToolStripMenuItem_Click(object sender, EventArgs e)
{
fontDialog1.ShowDialog();
richTextBox1.SelectionFont = fontDialog1.Font;
}

private void yardımKonularıToolStripMenuItem_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();

}

private void Form1_Load(object sender, EventArgs e)
{
label1.Visible = false;
textBox1.Visible = false;
statusStrip1.Enabled = false;
}

private void durumÇubuğuToolStripMenuItem_Click(object sender, EventArgs e)
{
statusStrip1.Enabled = true;
}

private void bulToolStripMenuItem_Click(object sender, EventArgs e)
{
label1.Visible = true;
textBox1.Visible = true;

yer = richTextBox1.Text.ToUpper().IndexOf(textBox1.Text.ToUpper());
if (yer < 0)
MessageBox.Show("üzgünüm bulunamadı");
else
{
richTextBox1.SelectionStart = yer;
richTextBox1.SelectionLength = textBox1.Text.Length;
MessageBox.Show((yer + 1).ToString() + " . harfte buldum ve seçtim");
}
}

private void sonrakiniBulToolStripMenuItem_Click(object sender, EventArgs e)
{
label1.Visible = true;
textBox1.Visible = true;

yer = richTextBox1.Text.ToUpper().IndexOf(textBox1.Text.ToUpper(), yer + 1);
if (yer < 0)
MessageBox.Show("üzgünüm başka bulunamadı");
else
{
richTextBox1.SelectionStart = yer;
richTextBox1.SelectionLength = textBox1.Text.Length;
MessageBox.Show((yer + 1).ToString() + " . harfte bir tane daha buldum ve seçtim");
}
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for 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 12 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

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.