سلام خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد رسم 2 خط با یک Pen در سی شارپ #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
تصویر خروجی این کد:
کد رسم 2 خط با یک Pen در سی شارپ #C :
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
public class PenWidthColor : System.Windows.Forms.Form
{
public PenWidthColor()
{
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(400, 400);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.PenWidthColor_Paint);
}
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
public class PenWidthColor : System.Windows.Forms.Form
{
public PenWidthColor()
{
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(400, 400);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.PenWidthColor_Paint);
}