Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic AllowDrag ineffective (Read 3707 times)
DoctorsDad
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: May 19th, 2011
AllowDrag ineffective
Jul 23rd, 2014 at 9:04am
Print Post  
In the Calendar control (Winforms 5.2.0.15247) I have AllowDrop = true and AllowDrag = false.

I can drop items on to the form and that works fine but the control still allows me to drag items around without firing any events.

As I read the docs, setting AllowDrag = false should prevent dragging.

If I can't prevent it, how do I trap it?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: AllowDrag ineffective
Reply #1 - Jul 23rd, 2014 at 9:42am
Print Post  
Hi,

The AllowDrag property only concerns the OLE Drag & Drop. If you want to prevent the user from modifying items interactively inside the control, you can either lock the items (by setting their Locked property to true) or handle the ItemModifying event of the Calendar class and set the Confirm property of the event argument to false.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint