Many problems under VS2005

Jul 30, 2008 at 2:39 PM
Edited Jul 30, 2008 at 2:42 PM

I'm trying to test docking library under VS2005 but doesn't work noting. I have tryed to load manualy and automaticaly AvalonDock.dll inside tool box but I have an error. In manualy mode the error is "Tere are no components in ....thath can be paced io the toolbox" automaticaly with setup the error is "The toolbox Control Installer must be installed before running this installer", but de TCI is present on my PC. The only way to load the DLL is as reference.

OK, now I have load AvalonDock.dll as reference and also i have loaded "PresentationCore, Presentationframework, WindowsBase" now the component is loaded correctly.

My big question here is how can I use lhis library under C# ?
I have generated the following code thath run correctly but doesn't work.



using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AvalonDock;

public partial class Form1 : Form
DockingManager dm = new AvalonDock.DockingManager();
            DocumentPane dp = new DocumentPane();   




            public Form1()

void button1_Click(object sender, EventArgs e)
                    DocumentContent dc = new DocumentContent();
                    dc.Title =
"Document 1";
                    dc.InfoTip =
"Info tipo for ";
                    dc.ContentTypeDescription =
"Sample document";
                    dc.Content =
new UserControl1();

is possible to have an example on how to make a UserControl dockable inside the main form?
Is there an helt taht explane the use of library?

Best regards.




Aug 1, 2008 at 5:02 PM
AvalonDock is a WPF control so should be used in WPF applications. As I can see from your code you're building a WinForms application that use a completed different tecnology.
If you need a docking system like AvalonDock but much more powerful and targeting WinForms google DockPanel suite.