How to implement the maintenance form can using the Docking tools?


Author
Message
Raymond Lo
Raymond Lo
StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)StrataFrame Beginner (46 reputation)
Group: Forum Members
Posts: 18, Visits: 101

 Dear Sir/Madam,
 

        I’m a fresh dotnet guy ,I have a free DockingPanel tools want to using in my application,but this tools Inherits the basic windows.form will have conflict with MicroFour.StrataFrame.UI.Windows.Forms.StandardForm

Can you give me some hints or coding for me how to implement it?

 
       Please refer to the attached project.Smile

Attachments
myproject.zip (165 views, 2.00 MB)
Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Well, there are a few options.  The first would be to look at some docking panels such as Infragistics or DevExpress that do not maintain the logic in the form.  By NOT placing the docking logic in the base form, you can add logic into user controls, etc. and ultimately have a lot more flexibility...however, I understand that it is not free.

So if you are going to move down this path, you will need to create your own base form.  Since you have the source code, just find the BaseForm in the MicroFour StrataFrame Business assembly.  You will need to create your own base form (this is all that StandardForm does, it inherits from BaseForm).  Copy over BaseForm and then change the inheritance to your class.  I don't recommend changing BaseForm itself otherwise you will have to change it with every release, which is fine if you want to add that to your "to-do" list.  But once you have it copied over to your base assembly, change the inheritance of the BaseForm from the standard .NET form to your docking form and it will get you what you are trying to do.

Aaron Young
Aaron Young
Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)Advanced StrataFrame User (569 reputation)
Group: StrataFrame Users
Posts: 277, Visits: 1.1K
Hi Raymond,



I use the Infragistics controls and their docking panel works without any problems. To be honest, I would avoid any control that inherits from a form - not really sure that is a good idea. Infragistics is expensive but I am sure there will be other free docking panel controls that do not inherit from a form.



Aaron
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search