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 Kara
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
int sayac = 0;
Random r1 = new Random();
private void Form1_Load(object sender, EventArgs e)
{
timer1.Start();
timer2.Start();
timer3.Start();
timer4.Start();
timer1.Interval = 200;
timer2.Interval = 200;
timer3.Interval = 200;
timer4.Interval = 100;
}
private void timer1_Tick(object sender, EventArgs e)
{
int x = r1.Next(0, 700);
int y = r1.Next(0, 400);
button1.Top = y;
button1.Left = x;
sayac++;
label1.Text = sayac.ToString();
}
private void timer2_Tick(object sender, EventArgs e)
{
int x = r1.Next(0, 700);
int y = r1.Next(0, 400);
button2.Top = y;
button2.Left = x;
}
private void timer3_Tick(object sender, EventArgs e)
{
int x = r1.Next(0, 700);
int y = r1.Next(0, 400);
button3.Top = y;
button3.Left = x;
}
private void Form1_MouseLeave(object sender, EventArgs e)
{
/*button1.Top = 0;
button1.Left = 0;
button2.Top = 0;
button2.Left = 0;
button3.Top = 0;
button3.Left = 0; */
timer1.Stop();
timer2.Stop();
timer3.Stop();
timer4.Stop();
timer1.Interval = 999999;
timer2.Interval = 999999;
timer3.Interval = 999999;
timer4.Interval = 999999;
}
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
}
private void button1_MouseHover(object sender, EventArgs e)
{
Form2 n1 = new Form2();
this.Hide();
n1.Show();
}
private void button2_MouseHover(object sender, EventArgs e)
{
Form2 n1 = new Form2();
this.Hide();
n1.Show();
}
private void button3_MouseHover(object sender, EventArgs e)
{
Form2 n1 = new Form2();
this.Hide();
n1.Show();
}
private void timer4_Tick(object sender, EventArgs e)
{
if (sayac == 5)
{
timer1.Interval = 150;
timer2.Interval = 150;
timer3.Interval = 150;
}
if (sayac == 10)
{
timer1.Interval = 100;
timer2.Interval = 100;
timer3.Interval = 100;
}
if (sayac == 15)
{
timer1.Interval = 50;
timer2.Interval = 50;
timer3.Interval = 50;
}
if (sayac == 20)
{
timer1.Interval = 1;
timer2.Interval = 1;
timer3.Interval = 1;
Form3 f3 = new Form3();
this.Hide();
f3.Show();
}
}
private void Form1_MouseEnter(object sender, EventArgs e)
{
timer1.Start();
timer2.Start();
timer3.Start();
timer4.Start();
timer1.Interval = 200;
timer2.Interval = 200;
timer3.Interval = 200;
timer4.Interval = 100;
}
}
}
|
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