pnTrastear.RemoveAllViews
For Each vv As View In hsvMGCanvas.Panel.GetAllViewsRecursive
If vv Is Label Then
Dim lb As Label = vv
pnTrastear.AddView(lb, vv.Left,vv.Top,vv.Width,vv.Height)
End If
Next
pnTrastear.RemoveAllViews
For Each vv As View In hsvMGCanvas.Panel.GetAllViewsRecursive
If vv Is Label Then
Dim lb As Label = vv
Dim lbNew As Label
lbNew.Inicialize("")
lbNew.Text=lb.Text
...
pnTrastear.AddView(lbNew, vv.Left,vv.Top,vv.Width,vv.Height)
End If
Next
pnTrastear.RemoveAllViews
For Each vv As View In hsvMGCanvas.Panel.GetAllViewsRecursive
If vv Is Label Then
Dim lb As Label = vv
Dim lbNew As Label
lbNew.Initialize("")
lbNew.Text=lb.Text
...
pnTrastear.AddView(lbNew, vv.Left,vv.Top,vv.Width,vv.Height)
End If
Next
As this thread is related to this thread, why do you want to copy views from one panel to another one ?
I am interested to understand what the program is supposed to do with same or similar views on two different panels.
In my mind you could use the HorizontalScrollView for all different user actions.
Could you please explain how the program is supposed to work.
It is easier to give concrete advice when we know the whole problem not just answering a specific question.
Hi, I created this thread on post #5 of the other thread, in which you have helped me.
I was quite lost at the time and trying different things.
This thread can be deleted (or mixed with the previous one).
Thank you very much, friends.