|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Creating ToolWindows with .NET in VBEI want to write a few AddIns for the VBA editor VBE with Visual Studio 2005. I have started to develop them in Visual Basic 6 and it worked well but Visual Basic .Net offers a lot of better components and features (and of course it's up to date). I have already created a basic AddIn that works well in VBE, displays modal Forms and is already able to manipulate the source code but what I cannot achieve is a way to create Toolwindows that are able dock along the other already existant toolwindows. Im using this code in the OnConnection Method of the connect.vb Module: Dim objToolWindowTasks As Window Dim objUserDocumentTasks As Object Dim objVbe As VBE objVbe = DirectCast(applicationObject, VBE) Try objToolWindowTasks = objVbe.Windows.CreateToolWindow(addInInst, "VbaCodeRanger.Aufgaben", "Aufgaben", "89045C22-06D3-4E7B-AB34-6114FAC9ED25", objUserDocumentTasks) Catch ex As Exception MessageBox.Show(ex.Message) End Try When I load the AddIn in the VBE, the errormessage Specified method is not supported Is there anybody out here been able and willing to tell me how to create a toolwindow for the vbe that is working ? Thanks Jan P.S: The same code in visual Basic 6 works fine Hi ,
Can you please send the code which is working for you . Because i have the same requirement to do in my project. But i don't know how to solve your problem. Thanks. |
|||||||||||||||||||||||