There is apparently a small buglet in the way Microsoft Visual Basic .NET handles labels with the Autosize property set to True. I have read about other users with the same problem. What I need should be very simple for someone who may have experienced this before. What I need is code that works around this problem and lets me place labels on a windows form where the autosizing works properly.
Please create a sample form with 4 labels and a button. When the button gets clicked I need to have each of the 4 labels populated with data. When the labels are populated, I need each label positioned below the preceeding label. i.e. Each of the 4 labels will have the same left property, but when they are populated their heights/widths would adjust automatically (like they are supposed to). The button can simply toggle back and forth between just two sets of data so you do not need to create a lot of sample data. But, the sample data should vary in size from one line of data to about 15 rows of data just so I can see that the labels move and size dynamically. Yes, the labels will need to move UP or DOWN depending on the size of the previous label. All of this is about 5~10 minutes of code in VB6, but it must be done in Viusal Basic .NET -- Not ASP.NET