Arka arkaya tıklanan form üzerindeki 2 noktayı ekrana çizen ve arasındaki mesafeyi messagebox ile gösteren uygulama.
Kod:
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();
}
Random q = new Random();
int birposy;
int birposx;
int ikiposy;
int ikiposx;
int count = 0;
int kirmizi = 125;
int yesil = 125;
int sari = 125;
private void Form1_MouseClick(object sender, MouseEventArgs e)
{
Kod:
[LEFT][COLOR=#111111]}[/COLOR][/LEFT]