Really hope you can help,
I've been scouring the net trying to find a simple method to return an image to a listview with little success. How can I use the ReadDWGFile to send the associated dwg "bitmap" to a listview using c#. Currently my code only returns the filePath.
I found this on your site but couldn't get it to work
private void AddToImageList(string filename)
{
Database db = new Database(false, false);
db.ReadDwgFile(filename, FileOpenMode.OpenForReadAndAllShare, false, null);
Bitmap bitmap = db.ThumbnailBitmap;
if (!(imgListLarge.Images.ContainsKey(filename)))
{
imgListLarge.Images.Add(filename, bitmap);
imgListSmall.Images.Add(filename, bitmap);
}
}
...here's hoping