Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to add items to a listview with tile view from bottom to top?

$
0
0

Hi, very new to C# so please be simple!

I have a listview created with tile view.  How do I add items to the listview from bottom to top, left to right? (or top to bottom, either will do)

The size of the listview is variable, therefore the amount of tiles differs according to what the user selects

shelf2 = new ListView();
                shelf2.Size = new System.Drawing.Size(shelfWidth / 2 + 75, shelfHeight2 / 2);
                shelf2.Location = new System.Drawing.Point(300, 500 - (shelfHeight2 / 2));
                shelf2.TileSize = new Size(42, 60);
                shelf2.View = View.Tile;
                this.Controls.Add(shelf2);


Any help is greatly appreciated.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



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