“Draw” a pattern of “*” & “=”

Hello all!

ive hit a snag in one of my uni practicals. up until now all ive done is draw shapes in picture boxes, repeat them, colour them etc. for this practical i have to make a pattern of "*" & "=" symbols and i dont know how to output those symbols onto my form. i tried changing a labels text but nothing happened..

here is what i have so far (very incomplete, im just trying to get one * first..)

 int cols = 1; int rows = 1; Graphics paper = pictureBox1.CreateGraphics(); int numRowsAndStars = 1; numRowsAndStars = int.Parse(textBox_numRows.Text); if(numRowsAndStars <= MAX_ROWS_STARS) { while(rows <= numRowsAndStars) { while(cols <= numRowsAndStars) { label_showRows.Text = "test"; } } } else { MessageBox.Show("fuck this"); } } 

by theplaymaker626 via /r/csharp

Leave a Reply