Errors with New Base Class (Devexpress)


Author
Message
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I've changed the BaseForm.vb

as

Public Class BaseForm
        Inherits MyBaseForm
        Implements MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl

MyBaseForm is inhereted from Devexpress XtraForm.

I 've got error message below in design time when SimpleButton (Devexpress wrapped) object were dropped on my form. My form is based on StandartForm which is based on my changed BaseForm. With Textedit Object there is no similar error.

"The object that the business object has been dropped on must be implement
MicroFour.strataFrame.UI.Windows.Forms.IcontainerControl"

IContainerControl Interface is implemented on baseform class but is not root (base class) now, Do I implement this interface on my base class ?

I've tried to set Business Object property of text control, I couldn't see BusinessObject in the list.

 


Reply
Ertan Deniz
Ertan Deniz
StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)StrataFrame User (207 reputation)
Group: Forum Members
Posts: 163, Visits: 493
I couldn't found any error, When I was testing changed BaseForm class inhereted from Devexpress XtraForm. But you are right. The change of source like this may be problem in the future and hard to follow. My problem is with my baseform (It is inhereted from XtraForm). It has logic implemented to serve our forms. I think We get the problems due to this hiyerarcy.

I have tried many ways like re-implementing the IContainerControl in the sample form, Compiling strataframe source with my base dll.  

I've followed your instructions. Your sample does not work. I've got the error below :

'RemoveObjectFromInitOnFormLoad' cannot implement 'RemoveObjectFromInitOnFormLoad' because there is no matching sub on interface 'MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl'. 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ertan Deniz - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Chan - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ertan Deniz - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ertan Deniz - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Ertan Deniz - 17 Years Ago
Ertan Deniz - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Chan - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search