Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

New Row of Labels

$
0
0

I have a loop which adds a specified number of labels determined by the user to a form that are equally distributed across the form.  However, it's possible for them to not be seen because they exceed the width of the form.  I need my code to determine if the label is greater than the width of the form it starts a new row.  Below is the code I have so far, and it may not be the best choice, but it does place the label on the form.

Private Sub LoadWords()

For Me.x = 1 To NumOfWords

Words(x).Left = (100*x) + (x*25)

Words(x).Top = 50

End Sub


Mike


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>