Tuesday, July 28, 2009

In GW-BASIC Command, Paint (x,y) is used to colour any closed area. What is its equivalent in VISUAL BASIC?

I am an ammetuar programmer. Years back, I used to make small programmes with the above command in GW-BASIC. Now I want to do same thing in VISUAL BASIC. But there is no such command. How can it be achieved?

In GW-BASIC Command, Paint (x,y) is used to colour any closed area. What is its equivalent in VISUAL BASIC?
You'll want to dive into the System.Drawing and System.Drawing.Drawing2D namespaces. Most notably the DrawRectangle and FillRectangle methods of the Graphics class.


No comments:

Post a Comment