I have a program that shows randomized dice based on a number entered by a user. I have the for loop running that creates the number of dice based on the number entered and shows them in a panel. My problem is that when the dice appear in the page there are no spaces between them. I was wondering how to add the space in the for loop? I am trying a nbsp but not sure where to put it.
Here is the for loop code
Here is the for loop code
VB.NET:
Protected Sub makeImages()
For i As Integer = 0 To txtNumber.Text - 1
Dim img As New Image
img.ID = Int(6 * Rnd()) + 1
img.ImageUrl = "Images/" & img.ID & ".jpg"
img.BorderStyle = BorderStyle.Solid
img.BorderWidth = 1
PlaceDice.Controls.Add(img)
lblMemory.Text = lblMemory.Text & img.ID.ToString
Next
End Sub