Design View of a Form containing Navigator prompts Checkouts

Topics related to the Krypton Navigator.

Moderators: Phil Wright, Chris Porter

Design View of a Form containing Navigator prompts Checkouts

Postby jayeldee » Thu Apr 12, 2007 1:48 am

Hi,

I've noticed the situation described in the subject lately as myself and another developer (merlinzlair on these forums) have been working simultaneously on parts of the same Windows Application.

Any time either of us open the main form in Design view, the following files are checked out each time.

    licesnes.licx
    <OurProjectName>.vbproj
    MainForm.vb
    MainForm.Designer.vb
    MainForm.resx

It locks the files exclusively so when someone attempts to view the form that is not the person who checks it out, they receive an unhandled exception 'The user cancelled the checkout.'

I'm curious why it needs to check out the files to view the Form and if there's a way we can edit the behavior to not do so. Can we exclude the .licx file from either the project or from Source Control so that any changes to it don't cause exclusive checkouts? Would this have any negative side effects in our project?

The two other Krypton Forms in the project that do not contain Navigator don't exhibit this problem.

Software we're using:
Visual Studio 2005
Krypton Toolkit/Navigator 2.4.1
Sourcegear Vault


Thanks,

John Duncan
Houston,TX
jayeldee
 
Posts: 2
Joined: Sat Feb 10, 2007 1:27 am
Location: Houston

Postby Phil Wright » Thu Apr 12, 2007 10:30 am

Certainly there is nothing in the code or setup of Krypton that decides which files are checked out when editing a Form. I assume therefore that this is standard Visual Studio 2005 behavior for a form that has an associated licence file. If you tried with another component that is also licensed I guess it would act exactly the same.

Might be worth trying to google for a solution to the problem as maybe others have come across the same point?
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby jayeldee » Fri Apr 13, 2007 12:59 am

Phil Wright wrote:Certainly there is nothing in the code or setup of Krypton that decides which files are checked out when editing a Form. I assume therefore that this is standard Visual Studio 2005 behavior for a form that has an associated licence file. If you tried with another component that is also licensed I guess it would act exactly the same.

Might be worth trying to google for a solution to the problem as maybe others have come across the same point?


I didn't think that Krypton was actively checking out files - sorry, I worded it incorrectly. I was just curious if it edited the .licx file at design time which would prompt the project checkout, but I've since seen the error of my way. I checked the forums for Vault and other people have had the problem and there's a way around it. Thanks for the reply.

John Duncan
jayeldee
 
Posts: 2
Joined: Sat Feb 10, 2007 1:27 am
Location: Houston

Postby Mike M » Wed Aug 22, 2007 1:09 am

I am getting a similar error, and I am not using the Navigator or Ribbon, and thus no license. If I view my user control in Design View without having the file checked out, it tells me that there was an exception and the message is "User cancelled checkout" or something like that, and then Visual Studio crashes/closes as soon as I click the OK button.

I am using VS 2005 SP1 with XP, and the control is using KryptonPanel with a FlowLayoutPanel and then several KryptonHeaderGroups, with other controls nested inside.
Mike M
 
Posts: 15
Joined: Thu Aug 16, 2007 12:15 am

Postby Dave » Mon Sep 03, 2007 9:07 pm

I also get this, it is because the navigator changes the selected page property when selected (which occurs when you open a form) I have mentioned this before.
Dave
 
Posts: 14
Joined: Thu Aug 09, 2007 6:36 am

Postby Phil Wright » Thu Sep 06, 2007 3:40 pm

Your saying the issue is that when a Form is opened that has a Navigator instance it causes the Form to be marked as modified because the selected page is not the default?

I tried that scenario and it did not mark the Form has dirty, in did not add a * next to the filename in document window.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia


Return to Krypton Navigator

Who is online

Users browsing this forum: Bing [Bot] and 1 guest