Still cannot search, so don't know if this has already been answered....
When I draw a line on a form at run time, then place another window on top of this form (eg Word, or Explorer) by using Alt-Tab (ie nothing to do with this app), the lines beneath the new window are removed. All design time controls are left on the form.
I have tried this with lines directly on the form and via a picture box and get the same result.
It's as if the form is re-drawn when it becomes active again, rather than staying in the state I left it with the extra lines.
Does anyone know how/why this happens and whether there is something I'm not doing or there is a workaround. I need to construct an image at run-time comprising a number of lines that can be displayed on a form - ideally via VB?
Thanks in anticipation.
When I draw a line on a form at run time, then place another window on top of this form (eg Word, or Explorer) by using Alt-Tab (ie nothing to do with this app), the lines beneath the new window are removed. All design time controls are left on the form.
I have tried this with lines directly on the form and via a picture box and get the same result.
It's as if the form is re-drawn when it becomes active again, rather than staying in the state I left it with the extra lines.
Does anyone know how/why this happens and whether there is something I'm not doing or there is a workaround. I need to construct an image at run-time comprising a number of lines that can be displayed on a form - ideally via VB?
Thanks in anticipation.