Interface implementation in VS 2005 Pro

R

RYoung

I'm developing a WinForms app in VS Pro 2005. I have defined an interface
for custom controls to implement:

interface IViewPanel
{
string Name{ get; }
}

A user control class:

partial class MyControl : UserControl, IViewPanel
{
// generated code
}

When I build at this point, the build succeeds even though I haven't
implemented the IViewPanel interface in MyControl. A SmartTag for IViewPanel
only has the "Explicitly implement IViewPanel".

If I use a BCL Interface, such as IConfigurationSectionHandler - the options
are to implement it, or explcitly implement it.

Anyone else see this problem?

Ron
 
R

RYoung

can't use "Name" as a property in the interface because the UserControl
already has a Name property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top