Hi,

I use the website below for drag and drop canvas:
http://blogs.msdn.com/marcelolr/arch...02/542641.aspx

I have a textbox, button and user control in my application. The user control consists of a label. When the user type text on the textbox and click on the button, the user control containing the text in the textbox will appear.
I use the website above for drag and drop the user control but it does not work. But it works if it is not a user control. So does it means drag and drop a user control is different from canvas...? And is there any solution for it...? I'm using WPF application

Below is a small portion of my coding:

Dim test As New UserControl3

Private Sub DragStarted2()

m_IsDragging2 = True

m_OriginalLeft2 = Canvas.GetLeft(test.textLabel)
m_OriginalTop2 = Canvas.GetTop(test.textLabel)
m_OriginalRight2 = Canvas.GetLeft(test.textLabel)
m_OriginalBottom2 = Canvas.GetTop(test.textLabel)
m_OverlayElement2 = New Rectangle()
m_OverlayElement2.Width = m_OriginalElement2.RenderSize.Width
m_OverlayElement2.Height = m_OriginalElement2.RenderSize.Height
newCanvas.Children.Add(m_OverlayElement2)

End Sub

Thanks