Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / March 2005

Tip: Looking for answers? Try searching our database.

Create a linked window frame

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Burini Claudio - 28 Feb 2005 14:40 GMT
Hi



           I've created a normal System.Windows.Form and now I would
link it to the IDE. I found an example on msdn but I couldn't realize
how to link my form to IDE.



Anybody could help me?



Sub WindowExample()

  Dim Frame As Window

  Dim w1 As Window =
DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer)

  Dim w2 As Window = DTE.Windows.Item(Constants.vsWindowKindOutput)

  Dim w3 As Window =
DTE.Windows.Item(Constants.vsWindowKindCommandWindow)



  'Create a linked window frame and dock together the Solution Explorer

  'and Ouput windows together inside it.

  Frame = DTE.Windows.CreateLinkedWindowFrame(w1, w2,
vsLinkedWindowType.vsLinkedWindowTypeDocked)

  MsgBox("Total number of windows in the linked window frame: " &
Frame.LinkedWindows.Count)



  'Add an additional tool window, the Command window, to the frame with

  'the other two.

  Frame.LinkedWindows.Add(w3)

  MsgBox("Total number of windows in the linked window frame: " &
Frame.LinkedWindows.Count)



  'Resize the entire linked window frame.

  Frame.Width = 500

  Frame.Height = 600

  MsgBox("Frame height and width changed. Now changing Command window
height.")



  'Resize the height of the Command window.

  Frame.LinkedWindows.Item(3).Height = 800

  MsgBox("Now undocking the Command window from the frame.")



  'Undock the Command window from the frame.

  Frame.LinkedWindows.Remove(w3)

End Sub
Carlos J. Quintero [.NET MVP] - 01 Mar 2005 11:22 GMT
I don´t think that you can link a modeless Windows.Form to the IDE, maybe with toolwindows (CreateToolWindow function, shim control, and blah, blah).

Signature

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com

 Hi

 

             I've created a normal System.Windows.Form and now I would link it to the IDE. I found an example on msdn but I couldn't realize how to link my form to IDE.

 

 Anybody could help me?

 

 Sub WindowExample()

    Dim Frame As Window

    Dim w1 As Window = DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer)

    Dim w2 As Window = DTE.Windows.Item(Constants.vsWindowKindOutput)

    Dim w3 As Window = DTE.Windows.Item(Constants.vsWindowKindCommandWindow)

 

    'Create a linked window frame and dock together the Solution Explorer

    'and Ouput windows together inside it.

    Frame = DTE.Windows.CreateLinkedWindowFrame(w1, w2, vsLinkedWindowType.vsLinkedWindowTypeDocked)

    MsgBox("Total number of windows in the linked window frame: " & Frame.LinkedWindows.Count)

 

    'Add an additional tool window, the Command window, to the frame with

    'the other two.

    Frame.LinkedWindows.Add(w3)

    MsgBox("Total number of windows in the linked window frame: " & Frame.LinkedWindows.Count)

 

    'Resize the entire linked window frame.

    Frame.Width = 500

    Frame.Height = 600

    MsgBox("Frame height and width changed. Now changing Command window height.")

 

    'Resize the height of the Command window.

    Frame.LinkedWindows.Item(3).Height = 800

    MsgBox("Now undocking the Command window from the frame.")

 

    'Undock the Command window from the frame.

    Frame.LinkedWindows.Remove(w3)

 End Sub

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.