وعليكم السلام
تفضل اخووي
تأكد اذا كان شغال لأنوو موجود عندي من الترم اللي راح
كود:
using System;
using System.Collections.Generic;
using System.;
using System.Windows.Forms;
using System.Drawing;
namespace ConsoleApplication3
{
class Program : Form
{
public Program()
{
this.Paint += new PaintEventHandler(Program_Paint);
}
void Program_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
g.DrawRectangle(new Pen(Color.Black, 3), 100, 100, 300, 200);
g.DrawLine(new Pen(Color.Yellow, 3), 100, 100, 250, 200);
g.DrawLine(new Pen(Color.Yellow, 3), 250, 200, 400, 100);
}
static void Main(string[] args)
{
Application.Run(new Program());
}
}
}