Last post Feb 28, 2019 04:55 PM by StrangerMike
Feb 28, 2019 03:34 PM|StrangerMike|LINK
Hello, (I hope this is not a duplicate question, I entered before and never saw it in queue)
I have a form that has two datagrids side by side, when I use the code below to print the screen, the two datagrids print stacked on each other, not side by side.
Do you see an adjustment that could fix this?
Dim W As Integer = System.Math.Max(grdLeft.Width, grdRight.Width)
Dim h As Integer = grdLeft.Height + grdLeft.Height
Dim bmp As Bitmap = New Bitmap(W, h)
Dim r As Rectangle = New Rectangle(0, 0, grdLeft.Width, grdLeft.Height)
r.Y = grdLeft.Height
r.Width = grdRight.Width
r.Height = grdRight.Height
Feb 28, 2019 04:21 PM|markfitzme|LINK
Is this intended for WebForms? If so then it will never work. If it's a WinForms app then you're in the wrong group and would get better results at a WinForms forums such as: https://social.msdn.microsoft.com/Forums/windows/en-US/home
Feb 28, 2019 04:55 PM|StrangerMike|LINK