473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Interfaces screwup question

I have the following in one form:

Public Class ExeScript
Inherits System.Windows.Forms.UserControl
Implements ToadInterfaces.Interfaces.GotFocus,
ToadInterfaces.Interfaces.HasConfiguration, ToadInterfaces.Interfaces.UCForm

and the implementation is

Public ReadOnly Property SBToolBar() As TD.SandBar.ToolBar Implements
ToadInterfaces.Interfaces.UCForm.SBToolBar

Definition of the interface is:

Public Interface UCForm
Property DocumentManagerDocument() As DocumentManager.Document
WriteOnly Property Configuration() As Configuration
Function CleanUp() As Boolean
Function FormKeyStrokes(ByVal kpe As System.Windows.Forms.KeyEventArgs) As
Boolean
Property HasChanges() As Boolean
ReadOnly Property SBToolBar() As TD.SandBar.ToolBar
End Interface

I get an error:
C:\Documents and Settings\MyName\My Documents\Visual Studio
Projects\ToadUI\ExeScript.vb(14): 'ToadUI.ExeScript' must implement
'ReadOnly Property SBToolBar() As TD.SandBar.ToolBar' for interface
'ToadInterfaces.Interfaces.UCForm'. Implementing property must have matching
'ReadOnly'/'WriteOnly' specifiers.

I have the same implementation and definition is about 5 other UserControls
with no problem.

Any ideas??

Lloyd Sheen
Jul 21 '05 #1
0 1171

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Franco Gustavo | last post by:
Hi, Please help me to understand this, because I don't see what I'm missing. I was reading a lot of examples on Internet that explain that C# doesn't implement multiple inheritance it...
1
by: baylor | last post by:
In C#, an interface cannot mark any method as static. i'm told the ILASM supports it but i've never tested that Two questions. First, why? OK, i've heard the reason about interfaces being...
0
by: Lloyd Sheen | last post by:
I have the following in one form: Public Class ExeScript Inherits System.Windows.Forms.UserControl Implements ToadInterfaces.Interfaces.GotFocus, ToadInterfaces.Interfaces.HasConfiguration,...
22
by: RSH | last post by:
Hi, I have been reading on interfaces working on samples I've run across on the web. For the life of me I cannot seem to grasp them. It appears to me that interfaces are simply blueprints to...
27
by: jm | last post by:
I am having trouble understanding the purposes of an interface, even though the concept of interfaces is around me all the time (user interface, for example). I'm just not understanding software...
5
by: =?Utf-8?B?UmljaA==?= | last post by:
Greetings, I am actually a VB.Net guy, but I have worked somewhat with C++ and C#. I just want to ask about the relationship between Abstract Classes and Interfaces. My first question is if...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.