|
-
Aug 24th, 2019, 06:12 PM
#18
Thread Starter
Junior Member
Re: Print scrollable panel
 Originally Posted by .paul.
Try this...
Code:
ElseIf TypeOf ctrl Is ListView Then
Dim lv As ListView = DirectCast(ctrl, ListView)
Dim img As New Bitmap(lv.Width, lv.Height)
lv.DrawToBitmap(img, New Rectangle(Point.Empty, img.Size))
e.Graphics.DrawImage(img, New PointF(ctrl.Left, ctrl.Top - StartPosition))
Thanks so much of your help. Everything worked well as i expected. Many thanks Paul
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|