i have a homework, it must show this:
it should look like an arrow. but as we all know, there is no center align in vb.net. i've been working on it for hours already, and i still can't make it right. somebody please help me. so far, this is what i've done, but i can't make it work.
ListBox1.Items.Clear()
a = "*"
s = " "
For m As Integer = 3 To 1 Step -1
ListBox1.Items.Add(s & a)
a += "**"
s -= " "
*
***
*****
*
*
*
*
*
***
*****
*
*
*
*
*
it should look like an arrow. but as we all know, there is no center align in vb.net. i've been working on it for hours already, and i still can't make it right. somebody please help me. so far, this is what i've done, but i can't make it work.
ListBox1.Items.Clear()
a = "*"
s = " "
For m As Integer = 3 To 1 Step -1
ListBox1.Items.Add(s & a)
a += "**"
s -= " "