开发者

Drawing, and Appending to a Double-Horizontal Line

开发者 https://www.devze.com 2023-01-17 22:03 出处:网络
I know how to draw straight lines in C#, but I would like to draw a horizontal line, with two colors. Light blue on the top, and dark blue on the bottom.开发者_StackOverflow中文版 Also, how would I so

I know how to draw straight lines in C#, but I would like to draw a horizontal line, with two colors. Light blue on the top, and dark blue on the bottom.开发者_StackOverflow中文版 Also, how would I sort of... Append to that line? For example, every few seconds, that line will become bigger... like a ProgressBar. (btw, I'm not creating a ProgressBar, just using that as an example).

Here's the kind of line that I'd like to draw. I am aware that I can simply use PictureBox. But I want to start drawing!

Also, if there are other ways of drawing, than GDI or GDI+, could you list or link to those?

Drawing, and Appending to a Double-Horizontal Line

Thanks!


You can implement the onPaint event on any Control and then do the drawing manually on the passed graphics object.

0

精彩评论

暂无评论...
验证码 换一张
取 消