Open wmjordan opened 3 years ago
Thank you, well spotted.
But is there a reason not to simply use:
var mousePosition = this.PointToClient(new Point(drgevent.X, drgevent.Y));
if (this.GetActiveTab(mousePosition) == dragTab) {
return;
}
int insertPoint = this.GetActiveIndex(mousePosition);
if (insertPoint < 0) return;
Oh, thank you for replying. Long time no program with WinForm :)
You are right.
I just wanted to say that I have some other concerns about the current drag-and-drop implementation.
I'll probably release a new version soon just to fix the immediate issue here, and then have a more considered go at it.
The point passed to GetActiveTabIndex should be the client coordinate. Thus the corresponding code in TabControlExtra.OnDragOver should be: