Hello everyone...
Heres a puzzling question..
I want to draw bars across a form...and I am not able to draw all across the form..(Not doing a very serious project,just having fun doing something crazy.)
Code:
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
		{
			
		drawbars(e.Graphics,Color.Red,Color.Blue,3,0);
			drawbars(e.Graphics,Color.Yellow,Color.Red,(this.Width/6),0);
			drawbars(e.Graphics,Color.Green,Color.Blue,(this.Width/3),0);
			drawbars(e.Graphics,Color.Chocolate,Color.White,(this.Width/2),0);
			
			
			//drawbars(e.Graphics,Color.BlueViolet,Color.Honeydew,(this.Width/-1),0);

		}
		private void drawbars(Graphics g,Color x,Color y,int i,int j)
		{

			System.Drawing.Rectangle rec=new Rectangle(i,j,(this.Width/5),(this.Height));
			LinearGradientBrush grad=new LinearGradientBrush(rec,x,y,10,true);

g.FillRectangle(grad,rec);

		}

		private void Form1_Resize(object sender, System.EventArgs e)
		{
			this.Invalidate();

		}
So,can someone help me achieve drawing bars till the right end of the form?
Thank Youuu