Link to home
Create AccountLog in
Avatar of slink9
slink9

asked on

VS2005 SP1 Infragistics NetAdvantage VB.Net

I am using VS2005 SP1 with Infragistics NetAdvantage controls.  I am working with an already existing program, forms, etc and am getting

Type 'Infragistics.Win.UltraWinEditors.UltraDateTimeEditor' is not defined.

This is the only remaining error.  I got rid of many errors when I installed the Infragistics development software.  More errors were eradicated by installing SP1.

I put in a reference to the UltraWinEditors dll and then get the same number of errors (18) which tell me that I need to add more controls to my project.

How do I get rid of this?
Avatar of surajguptha
surajguptha
Flag of United States of America image

>> Is this the only type of error you get? Are there any other errors that occur along with it
>> Can you paste the entire compile time rror
>> Can you paste the line of code where the error occurs?
Avatar of slink9
slink9

ASKER

This exact same error happens 18 times.  Here are two lines that are back-to-back.

Me.fromDate = New Infragistics.Win.UltraWinEditors.UltraDateTimeEditor
Me.toDate = New Infragistics.Win.UltraWinEditors.UltraDateTimeEditor

I can't load these forms in the designer, although all of the other forms appear fine.  I get the error message

The designer cannot process the code at line 292: Me.dtDateEnteredLawEnforcement.Location = New System.Drawing.Point(506, 183) The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.

I have a feeling that these two are related.  Taking care of the first should clear up the second.
Can you try commenting Me.dtDateEnteredLawEnforcement.Location = New System.Drawing.Point(506, 183) ??
Avatar of slink9

ASKER

Sure, but then I lose the control that is on the form.  I am working behind another programmer and trying to get an understanding of how this program is constructed.  Commenting out the errors is not really an option.
The reason i asked you to comment is because you got this message
>> The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified

You would not lose the control but just its location. Try going t the designer for that control and set the co-ordinates. my guess is tat someone has tampered with the autogenerated designer code
Avatar of slink9

ASKER

Okay.  Commenting out a few lines works and decreases the error count (by one) until I hit lines such as those below

Friend WithEvents fromDate As Infragistics.Win.UltraWinEditors.UltraDateTimeEditor
    Friend WithEvents toDate As Infragistics.Win.UltraWinEditors.UltraDateTimeEditor

and then the error count jumps by 20 or more for each one of those commented out.  I have a feeling that all-knowing MS thinks that it has been tampered with because it can't find the UltraDateTimeEditor control.  If I try to view the designer and add the control I get the message that it has been tinkered with.  I am baffled and it is looking like there is no help out there for this one.
ASKER CERTIFIED SOLUTION
Avatar of surajguptha
surajguptha
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of slink9

ASKER

Your suggestion, although not 100% dead-on, made me think about trying the previous version that I have.  It came up with 30 warnings but ran beautifully.  Closing this one out.  Keep an eye out for more NET beginner questions!!!