|
-
Jul 8th, 2008, 01:04 PM
#1
Thread Starter
Member
Compile errors with VS 2003 Project in VS 2005
I am trying to convert a VB .NET project from Visual Studio 2003 to Visual Studio 2005.
I have run into a compile error that I do not know how to resolve.
I get the following compile error associated with the code shown below.
Error 17 '_TableRowChangedEvent' is not a member of 'dsCurUser.TableDataTable_'.
Code:
Protected Overrides Sub OnRowChanged(ByVal e As DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me._TableRowChangedEvent) Is Nothing) Then
RaiseEvent _TableRowChanged(Me, New _TableRowChangeEvent(CType(e.Row, _TableRow), e.Action))
End If
End Sub
In VS 2003 AND in VS 2005.....the code module (dsCurUser.vb) is the only place where ._TableRowChangedEvent appears in the code. If I right-click, then select Go To Definition, it brings me to the line I am on (which as far as I can tell is the only reference in the entire project).
The same code/project compiles with no errors in VS 2003.
Does anyone have any insights, suggestions, etc?
Thanks
-
Jul 8th, 2008, 06:37 PM
#2
Re: Compile errors with VS 2003 Project in VS 2005
Just remove the If statement. I haven't seen code like that ion VB before, only in C#. It's basically checking to see whether any event handlers have been registered before raising the event. Don't worry about that. Just go ahead and raise the event. Nothing will happen if there are no event handlers.
-
Jul 9th, 2008, 07:13 AM
#3
Thread Starter
Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|