Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse icon not changing after e.Confirm = False (Read 3738 times)
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Mouse icon not changing after e.Confirm = False
Nov 30th, 2006 at 2:49am
Print Post  
Not sure if this is a bug or if i am doing something wrong......

I am using the control in timetable view back to a sql database with multiple users add and editing data in the database all the time, when an item is selected in the control I need to check that the record is not in use by other users in my database so I use the  ItemSelecting Sub I check with my database to see if the item is in use and if so then stop the user from editing the item in the control by using e.Confirm = False, the problem is if you try and change the size of the item after I cancel it with e.Confirm = False the mouse icon stays as the move icon and you have to click the control or forum before the mouse icon will refresh. I have tried Me.Cursor = cursors.Default and me.refresh below is my code..... Please help


    Private Sub cal1_ItemSelecting(ByVal sender As Object, ByVal e As MindFusion.Scheduling.WinForms.ItemConfirmEventArgs) Handles cal1.ItemSelecting


       If _Locked.Locked = True Then
           cal1.ResetDrag()
           MsgBox("this is locked by:" & _Locked.Lock_By & " on the: " & _Locked.lock_date)
           e.Confirm = False

       End If
       app = Nothing
       rec = Nothing
       Me.Cursor = Cursors.Default
       Me.Refresh()

    End Sub
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Mouse icon not changing after e.Confirm = Fals
Reply #1 - Nov 30th, 2006 at 6:17am
Print Post  
You can download a new version of Planner.NET from the following link and try with it:

https://mindfusion.org/_planner/_Planner.NET_41pre_trial13.zip

There should also be no need to explicitly set the cursor or refresh. The ResetDrag call can also be skipped if you intend to discard the operation anyway.

Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: Mouse icon not changing after e.Confirm = Fals
Reply #2 - Nov 30th, 2006 at 9:19pm
Print Post  
I installed this version.   
Deleted my obj and bin folders for my project. Referenced the new dll in project references. 
Cleaned the solution. 
but when I goto build the solution I get error
 
Error6'The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)' 
 
Please can you help? 
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Mouse icon not changing after e.Confirm = Fals
Reply #3 - Dec 1st, 2006 at 7:10am
Print Post  
Judging by your last topic http://mindfusion.org/cgi/Forum/YaBB.pl?board=calnet_brep;action=display;num=116... you have successfully run the latest version. Anyway, if that is not the case, try downloading the version I posted there and see if it works with it.

Meppy
  
Back to top
 
IP Logged
 
bxsl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 28
Joined: Oct 10th, 2006
Re: Mouse icon not changing after e.Confirm = Fals
Reply #4 - Dec 1st, 2006 at 9:45am
Print Post  
They only way that I could fix this was to create a new project and then import all of my forms into it and re-reference to the .dll, Is there an easier way to fix this?
  
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Mouse icon not changing after e.Confirm = Fals
Reply #5 - Dec 1st, 2006 at 12:51pm
Print Post  
The one reason I can think of right now that might cause this is if you reference both Calendar.dll and StandardForms.dll and you have replaced only Calendar.dll but not StandardForms.dll, because I forgot to include the StandardForms.dll in the *trial13.zip.

Did the same thing happen when you used the dlls from the *trial14.zip I posted in the other topic?

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