Advertisement
ntamas

rajzolgatás

Apr 4th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12.   public partial class Form1 : Form
  13.   {
  14.     static Graphics grafika;
  15.     public Form1()
  16.     {
  17.       InitializeComponent();
  18.       grafika = CreateGraphics();
  19.     }
  20.    
  21.     private void Form1_Load(object sender, EventArgs e)
  22.     {
  23.  
  24.     }
  25.  
  26.     private void Form1_Load(object sender, MouseEventArgs e)
  27.     {
  28.       Pen tollacska = new Pen(Color.Red);
  29.       Rectangle negyszog = new Rectangle();
  30.       grafika.DrawEllipse(tollacska, e.X-10, e.Y-10, 30, 30);
  31.     }
  32.   }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement