new desktop project
add a second window which will be cleverly named window2
on Window1 add a pushbutton with this
Dim newWindow As New Window2
newWindow.Top = 0
newWindow.Left = 0
newWindow.Width = 100
newWindow.Height = 100
newWindow.Title = " some random title"
newWindow.Visible = True
Dim p As New picture( 400, 400 )
newWindow.DrawInto p.Graphics, 0, 0
Break
run & press the button
the contents of the picture are black
I have yet to find a way to make this work reliably
<https://xojo.com/issue/57264>
Ideas ?