Hi, i want to make a form with a timer. when the timer passes 100 then the background will change, and this will loop. but how to make it?

-start the timer in the form's load event
-in the timer's tick event..generate a random color

System.Drawing.Color myColor = Color.FromArgb(255, 255, 255, 255);
this.BackColor = myColor;

the first parameter passed to gthe Color.FromArgb() is the alpha value and should always be 255 i.e. opaque

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.