[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1078
  • Last Modified:

C# code needed to draw a rectangle and filling it with gradient color.

Code should be C# for VS .NET 2003


I just want to draw a rectangle and fill it with any RGB color one edge and fade to White at the other.
Complete code for Main() needed so that as soon as app runs, the rectangle is drawn and painted.
Thanks.
0
rj94070
Asked:
rj94070
1 Solution
 
dttriCommented:
 Hi,
  This is exactly what you need:

http://www.c-sharpcorner.com/2/gdi_plus.asp
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now