Hi,
We are having an issue where sometimes you cannot view a form with an Infragistics control in design mode when the form has been checked in to TFS (and is not currently checked out).
We are using VS 2010 and version 10 of the Infragistics controls.
Any ideas?
AgilysysMD said:you cannot view a form with an Infragistics control in design mode
What exactly do you mean by this? Why can't you view it? Is there some kind of error? Does it simply not show up? Does it display incorrectly - in the component tray, for example?
Sometimes If you have an infragistics control on a form that is checked in TFS source control and try to view the form in design mode you get the following error
The control System.Windows.Forms.UserControl has thrown an unhandled exception in the designer and has been disabled.
Exception: Unable to checkout the current file. The file may be locked, or you may need to check the file out manually.
Then when you click ok to continue, you see the form with a bix red bordered box and a red X that says Sytem compnentMod where the infragistic control should be.
If you check out the form you can view it with no problem. We need to be able to view the form without checking it out.
Again we are using visual studio 2010 with infragistic controls version 10 volume 2
The error message says UserControl. Is this a UserControl designer you are opening up? Or a Form with a UserControl on it?
Do you know specifically which control(s) is causing this error?
This is probably a bug. It looks like simply opening the form/UserControl in the designer is trying to change a property and thus dirty the form, but it can't do so because the form is read-only because it's not checked out. But opening up a designer should never by dirtying a property, so if that's what is happening, it's a bug.
If I am right, then when you check out the file and then open it, it will open up without an error, but you will see a "*" at the end of the file name in the tab for that file in Visual Studio, indicating that some property has been dirtied, even though you just opened up the designer without changing anything.
But we would have to know which control it is in order to fix it. Are you able to duplicate this behavior in a small sample project?
We are working to recreate this issue in a small test project as the issue is still happening.
Thanks.
Hello Mark,
I am just checking the progress of this issue. Did you able to create a isolate sample that illustrate your issue?
Just let us know when you manage to isolate this behavior. We will gladly look at it.
I have narrowed the problem down to the UltraTextEditor when in single line mode and you attempt to use full dock.
If you use multiline mode or if you use top, bottom, left or right dock it does not happen.
The reason that this came up is that we have a user control that is a credit card control. There is only an ultratexteditor on the user control and that is all you see. It acts just like adding an ultratexteditor or textbox to a form. The control handles credit card swipes and manual entries of credit cards with validation and masking. Using full doc made sure that all you saw was the ultratextbox.
My work around was to use Top Doc and adjust the height in code.
Hello,
I am just checking about the progress of this issue. Did you solve your issue accordingly to the information that I provided you?
Let me know if you need any further assistance.
Thank you for using Infragistics Components.
UltraTextEditor has a property which will help you to use dock to fill and multiline is set to false to work together. This property is AutoSize. If you set it to false you will have ability to adjust control height and you will be able to set dock to fill of the control correctly .
Let me know if you have any further questions.
Sincerely,
Hristo
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support