Thanks for your reply. Unfortunately I am not having much luck with ItemDropHint and was wondering if you had any further insights into my problem.
I am setting the ItemDropHint for the target tree "tvAlphaWorkspace" during the NodeMouseDown event of the source tree "tvAlphaTemplates". The code looks like this:
sender, RadTreeViewMouseEventArgs e)
(Control.MouseButtons == MouseButtons.Left)
templateDragNode = (RadCustomTreeNode)e.Node;
tvAlphaWorkspace.TreeViewElement.ItemDropHint = CreateDragImageShape(templateDragNode);
CreateDragImageShape looks like this
RadImageShape CreateDragImageShape(RadCustomTreeNode dragNode)
FontFamily fFam =
Font f =
Font(fFam, 8.25F, FontStyle.Regular);
(Bitmap tmpBmp =
(Graphics g = Graphics.FromImage(tmpBmp))
size = g.MeasureString(dragNode.Text, f);
Bitmap bitmap =
)Math.Ceiling(size.Width) + 40, (
)Math.Ceiling(size.Height) + 50);
(Graphics gr = Graphics.FromImage(bitmap))
gr.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
gr.DrawString(dragNode.Text, f, Brushes.Black, 0, 0);
RadImageShape imgShape =
imgShape.Image = bitmap;
I would like the image shape created to appear as the "under the cursor" image during thr drag operation but that is not happening.
I do not have AllowDragDropBetweenTrees on on either tree or have AllowDragDrop on on the source tree. Having these turned on drags the nodes and not the node objects that I want so I have them off.
CreateDragImageShape above does create an image but the dragging cursor never changes.
Hope you can help