C#:Flags with Rectangles Tutorial

From Progzoo
Revision as of 21:44, 3 October 2010 by Cs66 (talk | contribs) (France)
Jump to: navigation, search


The flag of Libya is a simple green rectangle.

Try the program as it is given, then change it so that the green rectangle is 150 wide.

Flag of Libya
[Font] [Default] [Show] [Resize] [History] [Profile]


The flag of France is blue, white and red. The code given draws only one of the three rectangles required, and it is in the wrong place.

Flag of France
[Font] [Default] [Show] [Resize] [History] [Profile]


The flag of Germany is black, red and yellow.

Only one of the three rectangles has been drawn - and that one is in the wrong place.

Flag of Germany
[Font] [Default] [Show] [Resize] [History] [Profile]


  • The flag of Bangladesh is a red circle on a green background.
  • The rectangle is 160 by 96.
  • The circle is in position 40,16 (a little left of centre)
  • Circle has width and height 64
  • The dark lines are NOT part of the flag. They are shown as guides only.
Flag of Bangladesh

[Font] [Default] [Show] [Resize] [History] [Profile]