Addin (C#)

daveacres

Newcomer
Joined
Sep 23, 2003
Messages
1
Addin

I have created an addin in Visual Studio.NET 2003 that contains 2 toolwindows.

I now wish to dock one of the tool windows to the bottom of the ide and dock the other to the same place as the solutions explorer/properties window.

So far I have been able to dock 1 window to the bottom of the ide but no luck with docking the other. Has anybody done this, i'm fairly new to addins and I have been told by another group that what I am trying to do is not possible!

The code that docks 1 window to the bottom of the ide is as follows;

void AddToMainWindow(Window win)
{
Window frame = applicationObject.Windows.CreateLinkedWindowFrame(win, win, EnvDTE.vsLinkedWindowType.vsLinkedWindowTypeTabbed);

frame.Height = 400;
frame.SetKind(EnvDTE.vsWindowType.vsWindowTypeToolWindow);
applicationObject.MainWindow.LinkedWindows.Add(frame);
}

The applicationObject is defined in the OnConnection Method as follows,
applicationObject = (_DTE)application;


Hope someone can help, i've been trying to do this for weeks and so far not much luck.

Cheers,
Dave.
 
Back
Top