I want to write a program that clicks on the button, creates a diamond shape Diamond Size Size 32 (rows and columns) And the increment of each row / column should be +/- 2 beginning from 1.
Even how have I come so far, how can I demonstrate this diamond in a multiline text box?
The Private Sub Button controls 1_Click (as the sender of the object, and EventArgs) button 1. As an integer, click the dim row in the form of an integer dim column I = as per the integer = 0 to step 2 if line = i or _ column = i then text box 1. Line (i) = "O" end if the integer = 16 to 32 phase -2 as o for the next line = o or _ column = o text box 1 lines (o) = "o" end if the next end sub
end orbit
There is no search for a complete solution here, just a push in the right direction. thank you in advanced!
sign:
TextBox1.Font = New System.Drawing. Font ("courier new", 9.0f) as integer = 7 for integer = 7, I am the integer = 1 to 15 step 2 as the DIM string = "" S = Straud (N, "") & amp; Storedup (i, "*") text box 1. Text = text box 1. Text & amp; S & amp; amp; VbCrLf n = n - 1 next
Comments
Post a Comment