|
-
May 19th, 2006, 04:48 AM
#1
Thread Starter
Fanatic Member
override
Hi,
Can you write the following code into vb.net ?
public override void VerifyRenderingInServerForm(Control control)
{
}
This is what I have done but it gives an error VerifyRenderingInServerForm (sub 'VerifyRenderingInServerForm' can not be declared 'overrides' because it does not override a sub in a base class)
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
End Sub
-
May 19th, 2006, 05:19 AM
#2
Re: override
From DeveloperFusion Convertor
VB Code:
Public Overloads Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
End Sub
As the error says does the function override a function in an inherited base class?
-
May 19th, 2006, 09:25 AM
#3
Thread Starter
Fanatic Member
Re: override
I thought VerifyRenderingInServerForm is a built in function, so I would not know.
p.s. your code gives the same error as before.
Thanks
-
May 19th, 2006, 10:30 AM
#4
Re: override
Aye you're right never heard of that before.
Is this any use to you from MSDN
-
May 19th, 2006, 03:33 PM
#5
Re: override
VB Code:
Public Overrides Sub VerifyRenderingInServerForm(ByVal control As System.Web.UI.Control)
MyBase.VerifyRenderingInServerForm(control)
End Sub
Ensure that the class inherits from System.Web.Ui.Page.
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
|