hi all, i've tried to draw a rectangle using this code:
[code]
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
Rectangle rect = new Rectangle(0, 0, 100, 100);
Brush brush = new SolidBrush(Color.Blue);
Pen pen = new Pen(brush, 5);
Graphics graphicsObj;
graphicsObj = this.CreateGraphics();
graphicsObj.DrawRectangle(pen, 0, 0, 50, 50);
}
}
}
[/code]
pls get me to draw the rectangle..