Hello again!!..
I have a form which needs several circles. These circles are actually graphic representation of led's so will change colors on on/off basis. Now as i need several of them and also use it on diff forms all the time, i want to create a user control which draws that so that i can only drag and drop it on the form i need and no matter the number of them i drop just like a button. I added a new usercontrol item and in the contructor i do this
Bitmap b;
Graphics g;
b = new Bitmap(30,30);
g = Graphics.FromImage(b);
Pen p = new Pen(Color.Black,2);
Rectangle rec = new Rectangle(0,30,30,30);
g.DrawEllipse(p,rec);
thats it.
shouldn't it draw circle on the form i drag and drop when i run that form. Please throw light
thanks
Bhavin