|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
click event awareness in contacts formHi All
I am trying to build an addin for outlook 2000, which requires that a VB form be launched whenever the user clicks on business phone number in contacts form. Is this possible? Thanks in advance Vandana Hi Vandana,
the OOM doesn´t support this. A way could be using some Win32 APIs. You can get the window handles for the required fields and need to hook into the messages being sent to this windows (mouse clicks). -- Show quoteViele Grüße Michael Bauer "Vandana" <Vand***@discussions.microsoft.com> wrote in message news:B956A5FF-A82B-4EC6-800B-41A4AE889E06@microsoft.com... > Hi All > > I am trying to build an addin for outlook 2000, which requires that a VB > form be launched whenever the user clicks on business phone number in > contacts form. Is this possible? > > Thanks in advance > Vandana Hi Michael
Thanks for the fast response. I am not too sure how to go about with this. Is there any code snippet that you could provide me with? Also will the information be available on any website? Thanks again Vandana Show quote "Michael Bauer" wrote: > Hi Vandana, > > the OOM doesn´t support this. A way could be using some Win32 APIs. You > can get the window handles for the required fields and need to hook into > the messages being sent to this windows (mouse clicks). > > -- > Viele Grüße > Michael Bauer > > > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > news:B956A5FF-A82B-4EC6-800B-41A4AE889E06@microsoft.com... > > Hi All > > > > I am trying to build an addin for outlook 2000, which requires that a > VB > > form be launched whenever the user clicks on business phone number in > > contacts form. Is this possible? > > > > Thanks in advance > > Vandana > > Hi Vandana,
unfortunately I haven´t a code snippet for you. You can start with a tool like Spy++, which maybe available on your VB-CD, or try to download it. With this tool you can easily check the windows hierarchy of any program. This was the easy part :-) Knowing the hierarchy you are able to walk through this and search the proper window by code. You will need APIs like GetClassName, GetDesktopWindow, GetWindowText, or SendMessage. On sites like www.mentalis.org there are many of this APIs explained. It´s a lot of work but it´s possible :-) -- Show quoteViele Grüße Michael Bauer "Vandana" <Vand***@discussions.microsoft.com> wrote in message that anews:58E46B46-3CB5-4BE6-A667-B1A95FC702AE@microsoft.com... > Hi Michael > > Thanks for the fast response. > > I am not too sure how to go about with this. > Is there any code snippet that you could provide me with? > Also will the information be available on any website? > > Thanks again > Vandana > > "Michael Bauer" wrote: > > > Hi Vandana, > > > > the OOM doesn´t support this. A way could be using some Win32 APIs. You > > can get the window handles for the required fields and need to hook into > > the messages being sent to this windows (mouse clicks). > > > > -- > > Viele Grüße > > Michael Bauer > > > > > > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > > news:B956A5FF-A82B-4EC6-800B-41A4AE889E06@microsoft.com... > > > Hi All > > > > > > I am trying to build an addin for outlook 2000, which requires Show quote > > VB > > > form be launched whenever the user clicks on business phone number in > > > contacts form. Is this possible? > > > > > > Thanks in advance > > > Vandana > > > > A simple work-around is to pu a copy of the phone number in the "Comments" box in the Contact form like this:
mailto:222-222-2222 It will create a newitem event that yu can catch and responde to as you like. OR Put a button on the form that grabs the number and does what you want. You cna get the main Window handle from the VBE object and use that to walk teh list of child windows. Still have to use the Win32 API. In VB you can use ToolHelp. I thingk, but have neever trid, that you can install the ToolHelp library in Outlook. It contains a VB cal to get the child windows if I remember correctly. -- Show quoteJim Vierra "Michael Bauer" <mi***@t-online.de> wrote in message news:OoBAzY3BFHA.3528@tk2msftngp13.phx.gbl... > Hi Vandana, > > unfortunately I haven´t a code snippet for you. You can start with a > tool like Spy++, which maybe available on your VB-CD, or try to download > it. > > With this tool you can easily check the windows hierarchy of any > program. This was the easy part :-) > > Knowing the hierarchy you are able to walk through this and search the > proper window by code. You will need APIs like GetClassName, > GetDesktopWindow, GetWindowText, or SendMessage. On sites like > www.mentalis.org there are many of this APIs explained. > > It´s a lot of work but it´s possible :-) > > -- > Viele Grüße > Michael Bauer > > > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > news:58E46B46-3CB5-4BE6-A667-B1A95FC702AE@microsoft.com... >> Hi Michael >> >> Thanks for the fast response. >> >> I am not too sure how to go about with this. >> Is there any code snippet that you could provide me with? >> Also will the information be available on any website? >> >> Thanks again >> Vandana >> >> "Michael Bauer" wrote: >> >> > Hi Vandana, >> > >> > the OOM doesn´t support this. A way could be using some Win32 APIs. > You >> > can get the window handles for the required fields and need to hook > into >> > the messages being sent to this windows (mouse clicks). >> > >> > -- >> > Viele Grüße >> > Michael Bauer >> > >> > >> > "Vandana" <Vand***@discussions.microsoft.com> wrote in message >> > news:B956A5FF-A82B-4EC6-800B-41A4AE889E06@microsoft.com... >> > > Hi All >> > > >> > > I am trying to build an addin for outlook 2000, which requires > that a >> > VB >> > > form be launched whenever the user clicks on business phone number > in >> > > contacts form. Is this possible? >> > > >> > > Thanks in advance >> > > Vandana >> > >> > > Hi Jim,
in OL there is no VBE object. And if you are able to use the APIs for searching child windows, then you don´t need it for getting a main window handle. -- Viele Grüße Michael Bauer "Jim Vierra" <jvie***@msn.com> wrote in message A simple work-around is to pu a copy of the phone number in thenews:uVvQoy9BFHA.2316@TK2MSFTNGP15.phx.gbl... "Comments" box in the Contact form like this: mailto:222-222-2222 It will create a newitem event that yu can catch and responde to as you like. OR Put a button on the form that grabs the number and does what you want. You cna get the main Window handle from the VBE object and use that to walk teh list of child windows. Still have to use the Win32 API. In VB you can use ToolHelp. I thingk, but have neever trid, that you can install the ToolHelp library in Outlook. It contains a VB cal to get the child windows if I remember correctly. -- Show quoteJim Vierra "Michael Bauer" <mi***@t-online.de> wrote in message news:OoBAzY3BFHA.3528@tk2msftngp13.phx.gbl... > Hi Vandana, > > unfortunately I haven´t a code snippet for you. You can start with a > tool like Spy++, which maybe available on your VB-CD, or try to download > it. > > With this tool you can easily check the windows hierarchy of any > program. This was the easy part :-) > > Knowing the hierarchy you are able to walk through this and search the > proper window by code. You will need APIs like GetClassName, > GetDesktopWindow, GetWindowText, or SendMessage. On sites like > www.mentalis.org there are many of this APIs explained. > > It´s a lot of work but it´s possible :-) > > -- > Viele Grüße > Michael Bauer > > > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > news:58E46B46-3CB5-4BE6-A667-B1A95FC702AE@microsoft.com... >> Hi Michael >> >> Thanks for the fast response. >> >> I am not too sure how to go about with this. >> Is there any code snippet that you could provide me with? >> Also will the information be available on any website? >> >> Thanks again >> Vandana >> >> "Michael Bauer" wrote: >> >> > Hi Vandana, >> > >> > the OOM doesn´t support this. A way could be using some Win32 APIs. > You >> > can get the window handles for the required fields and need to hook > into >> > the messages being sent to this windows (mouse clicks). >> > >> > -- >> > Viele Grüße >> > Michael Bauer >> > >> > >> > "Vandana" <Vand***@discussions.microsoft.com> wrote in message >> > news:B956A5FF-A82B-4EC6-800B-41A4AE889E06@microsoft.com... >> > > Hi All >> > > >> > > I am trying to build an addin for outlook 2000, which requires > that a >> > VB >> > > form be launched whenever the user clicks on business phone number > in >> > > contacts form. Is this possible? >> > > >> > > Thanks in advance >> > > Vandana >> > >> > > Hi
Thanks for all the help. I finally decided adding a button to contacts form for getting the info I need. I want to add this utton only to contact form and to be seen when a particular contact is opened. Please help me with this. Thanks Vandana Show quote "Michael Bauer" wrote: > Hi Jim, > > in OL there is no VBE object. And if you are able to use the APIs for > searching child windows, then you don´t need it for getting a main > window handle. > > -- > Viele Grüße > Michael Bauer > > > "Jim Vierra" <jvie***@msn.com> wrote in message > news:uVvQoy9BFHA.2316@TK2MSFTNGP15.phx.gbl... > A simple work-around is to pu a copy of the phone number in the > "Comments" box in the Contact form like this: > mailto:222-222-2222 It will create a newitem event that yu can catch > and responde to as you like. > > OR > > Put a button on the form that grabs the number and does what you want. > > You cna get the main Window handle from the VBE object and use that to > walk teh list of child windows. Still have to use the Win32 API. In VB > you can use ToolHelp. I thingk, but have neever trid, that you can > install the ToolHelp library in Outlook. It contains a VB cal to get > the child windows if I remember correctly. > > -- > Jim Vierra > "Michael Bauer" <mi***@t-online.de> wrote in message > news:OoBAzY3BFHA.3528@tk2msftngp13.phx.gbl... > > Hi Vandana, > > > > unfortunately I haven´t a code snippet for you. You can start with a > > tool like Spy++, which maybe available on your VB-CD, or try to > download > > it. > > > > With this tool you can easily check the windows hierarchy of any > > program. This was the easy part :-) > > > > Knowing the hierarchy you are able to walk through this and search the > > proper window by code. You will need APIs like GetClassName, > > GetDesktopWindow, GetWindowText, or SendMessage. On sites like > > www.mentalis.org there are many of this APIs explained. > > > > It´s a lot of work but it´s possible :-) > > > > -- > > Viele Grüße > > Michael Bauer > > > > > > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > > news:58E46B46-3CB5-4BE6-A667-B1A95FC702AE@microsoft.com... > >> Hi Michael > >> > >> Thanks for the fast response. > >> > >> I am not too sure how to go about with this. > >> Is there any code snippet that you could provide me with? > >> Also will the information be available on any website? > >> > >> Thanks again > >> Vandana > >> > >> "Michael Bauer" wrote: > >> > >> > Hi Vandana, > >> > > >> > the OOM doesn´t support this. A way could be using some Win32 APIs. > > You > >> > can get the window handles for the required fields and need to hook > > into > >> > the messages being sent to this windows (mouse clicks). > >> > > >> > -- > >> > Viele Grüße > >> > Michael Bauer > >> > > >> > > >> > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > >> > news:B956A5FF-A82B-4EC6-800B-41A4AE889E06@microsoft.com... > >> > > Hi All > >> > > > >> > > I am trying to build an addin for outlook 2000, which requires > > that a > >> > VB > >> > > form be launched whenever the user clicks on business phone > number > > in > >> > > contacts form. Is this possible? > >> > > > >> > > Thanks in advance > >> > > Vandana > >> > > >> > > > > > Hi Vandana,
for programming OL Forms there are a lot of good infos at Sue´s site (also for other issues, of course). Please take a look at: www.outlookcode.com -- Show quoteViele Grüße Michael Bauer "Vandana" <Vand***@discussions.microsoft.com> wrote in message news:83F260B4-EF7B-42D2-8BD2-9234A6FEE47B@microsoft.com... > Hi > > Thanks for all the help. > > I finally decided adding a button to contacts form for getting the info I > need. I want to add this utton only to contact form and to be seen when a > particular contact is opened.
Show quote
"Michael Bauer" wrote:
> Hi Vandana, > > for programming OL Forms there are a lot of good infos at Sue´s site > (also for other issues, of course). Please take a look at: > www.outlookcode.com > > > -- > Viele Grüße > Michael Bauer > > > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > news:83F260B4-EF7B-42D2-8BD2-9234A6FEE47B@microsoft.com... > > Hi > > > > Thanks for all the help. > > > > I finally decided adding a button to contacts form for getting the > info I > > need. I want to add this utton only to contact form and to be seen > when a > > particular contact is opened. > > Hi Michael
Sorry about the goof up in the earlier post. I went through the site you had suggested, but still I am not able to add the command button from my addin to the contact form in outlook. :( I have put the following code in a class module in my VB project and I am calling the initialize_handler routine from the designer form. Public Sub Initialize_handler(msPrgID As String) MsgBox "Initialize_handler() ", vbOKOnly Set contactitem = Application.Session.GetDefaultFolder(olFolderInbox).Items(2) contactitem.Display End Sub Private Sub contactitem_Open(Cancel As Boolean) contactitem.GetInspector.CommandBars.Add MsgBox "contact", vbOKOnly Dim cbStandard As CommandBar If cmdbutton Is Nothing Then cmdbutton = cbStandard.Controls.Add(msoControlButton) End If With cmdbutton .DescriptionText = "To launch the window from outlook" .BeginGroup = True .Caption = "My Addin" .FaceId = 4211 .Tag = "Addin" .ToolTipText = "Launch main window" .Style = MsoButtonStyle.msoButtonIconAndCaption .OnAction = "!<" & msPrgID & ">" .Visible = True End With End Sub I am not sure why its not working. Am I missing out on something. Please help me with this. Thanks again :) Vandana Show quote "Vandana" wrote: > > > "Michael Bauer" wrote: > > > Hi Vandana, > > > > for programming OL Forms there are a lot of good infos at Sue´s site > > (also for other issues, of course). Please take a look at: > > www.outlookcode.com > > > > > > -- > > Viele Grüße > > Michael Bauer > > > > > > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > > news:83F260B4-EF7B-42D2-8BD2-9234A6FEE47B@microsoft.com... > > > Hi > > > > > > Thanks for all the help. > > > > > > I finally decided adding a button to contacts form for getting the > > info I > > > need. I want to add this utton only to contact form and to be seen > > when a > > > particular contact is opened. > > > > Hi Vandana,
I think, now I´ve understood what you´re trying to do. Here is a sample for adding your own CommandBar with one -Button. To get the button click event you need to declare a variable WithEvents. Please modifiy the sample, so the button would be added only if you want it to. Private WihEvents YourButton as Office.CommandBarButton Private Application_Startup() Set YourButton=CreateCommandBarButton(Application.ActiveExplorer _ .CommandBars) End Sub Private Sub YourButton_Click(ByVal Ctrl As Office.CommandBarButton, CancelDefault As Boolean) ' here your code goes End Sub Private Function CreateCommandBarButton(oBars As Office.CommandBars) As Office.CommandBarButton On Error Resume Next Dim oMenu As Office.CommandBar Dim oBtn As Office.CommandBarButton Const BAR_NAME As String = "YourCommandBarName" Const CMD_NAME As String = "YourButtonName" Set oMenu = oBars(BAR_NAME) If oMenu Is Nothing Then Set oMenu = oBars.Add(BAR_NAME, msoBarTop, , True) Set oBtn = oMenu.Controls.Add(msoControlButton, , CMD_NAME, , True) oBtn.Caption = CMD_NAME oBtn.Tag = CMD_NAME Else Set oBtn = oMenu.FindControl(, , CMD_NAME) If oBtn Is Nothing Then Set oBtn = oMenu.Controls.Add(msoControlButton, , CMD_NAME, , True) End If End If oMenu.Visible = True Set CreateCommandBarButton = oBtn End Function -- Show quoteViele Grüße Michael Bauer "Vandana" <Vand***@discussions.microsoft.com> wrote in message cbStandard.Controls.Add(msoControlButton)news:AE841FA3-7747-4654-BA11-2D798F2D5902@microsoft.com... > Hi Michael > > Sorry about the goof up in the earlier post. I went through the site you had > suggested, but still I am not able to add the command button from my addin to > the contact form in outlook. :( > > I have put the following code in a class module in my VB project and I am > calling the initialize_handler routine from the designer form. > > Public Sub Initialize_handler(msPrgID As String) > MsgBox "Initialize_handler() ", vbOKOnly > Set contactitem = > Application.Session.GetDefaultFolder(olFolderInbox).Items(2) > contactitem.Display > End Sub > > Private Sub contactitem_Open(Cancel As Boolean) > contactitem.GetInspector.CommandBars.Add > MsgBox "contact", vbOKOnly > Dim cbStandard As CommandBar > > If cmdbutton Is Nothing Then > cmdbutton = Show quote > End If > With cmdbutton > .DescriptionText = "To launch the window from outlook" > .BeginGroup = True > .Caption = "My Addin" > .FaceId = 4211 > .Tag = "Addin" > .ToolTipText = "Launch main window" > .Style = MsoButtonStyle.msoButtonIconAndCaption > .OnAction = "!<" & msPrgID & ">" > .Visible = True > End With > End Sub > > > I am not sure why its not working. Am I missing out on something. > > Please help me with this. > > Thanks again :) > Vandana > > "Vandana" wrote: > > > > > > > "Michael Bauer" wrote: > > > > > Hi Vandana, > > > > > > for programming OL Forms there are a lot of good infos at Sue´s site > > > (also for other issues, of course). Please take a look at: > > > www.outlookcode.com > > > > > > > > > -- > > > Viele Grüße > > > Michael Bauer > > > > > > > > > "Vandana" <Vand***@discussions.microsoft.com> wrote in message > > > news:83F260B4-EF7B-42D2-8BD2-9234A6FEE47B@microsoft.com... > > > > Hi > > > > > > > > Thanks for all the help. > > > > > > > > I finally decided adding a button to contacts form for getting the > > > info I > > > > need. I want to add this utton only to contact form and to be seen > > > when a > > > > particular contact is opened. > > > > > > Of course adding a button to a menu from ActiveExplorer would add it to the
folder view, not to a contact item. To add it to a contact item when it's opened you'd have to trap NewInspector and add the button to the Inspector. -- Show quoteKen Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Michael Bauer" <mi***@t-online.de> wrote in message news:OIh%23KZVCFHA.904@TK2MSFTNGP12.phx.gbl... > Hi Vandana, > > I think, now I´ve understood what you´re trying to do. Here is a sample > for adding your own CommandBar with one -Button. To get > the button click event you need to declare a variable WithEvents. Please > modifiy the sample, so the button would be added only if you want it to. > > Private WihEvents YourButton as Office.CommandBarButton > > Private Application_Startup() > Set YourButton=CreateCommandBarButton(Application.ActiveExplorer _ > .CommandBars) > End Sub > > Private Sub YourButton_Click(ByVal Ctrl As Office.CommandBarButton, > CancelDefault As Boolean) > ' here your code goes > End Sub > > Private Function CreateCommandBarButton(oBars As Office.CommandBars) As > Office.CommandBarButton > On Error Resume Next > Dim oMenu As Office.CommandBar > Dim oBtn As Office.CommandBarButton > Const BAR_NAME As String = "YourCommandBarName" > Const CMD_NAME As String = "YourButtonName" > > Set oMenu = oBars(BAR_NAME) > If oMenu Is Nothing Then > Set oMenu = oBars.Add(BAR_NAME, msoBarTop, , True) > Set oBtn = oMenu.Controls.Add(msoControlButton, , CMD_NAME, , True) > oBtn.Caption = CMD_NAME > oBtn.Tag = CMD_NAME > > Else > Set oBtn = oMenu.FindControl(, , CMD_NAME) > If oBtn Is Nothing Then > Set oBtn = oMenu.Controls.Add(msoControlButton, , CMD_NAME, , > True) > End If > End If > > oMenu.Visible = True > Set CreateCommandBarButton = oBtn > End Function > > -- > Viele Grüße > Michael Bauer Ken,
That would be great but I tried exactly that with VB.NET and the newinspector event is firing but as soon as I try to access the inspector (i.e. to get the CommandBars and add mine) All it does is show the inspector window and leave the managed code (I mean that I just can't see anything else happening in my debugging session in V Studio) Can you help (I've seen your hints for VB6 but am using VB.NET so I tried to remain close but...)? Code snippet (actually the whole module is in another thread here called "Outlook CommandBar ID's) Thanks a lot in advance. Cheers Luc Show quote "Ken Slovak" wrote: > Of course adding a button to a menu from ActiveExplorer would add it to the > folder view, not to a contact item. To add it to a contact item when it's > opened you'd have to trap NewInspector and add the button to the Inspector. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > "Michael Bauer" <mi***@t-online.de> wrote in message > news:OIh%23KZVCFHA.904@TK2MSFTNGP12.phx.gbl... > > Hi Vandana, > > > > I think, now I´ve understood what you´re trying to do. Here is a sample > > for adding your own CommandBar with one -Button. To get > > the button click event you need to declare a variable WithEvents. Please > > modifiy the sample, so the button would be added only if you want it to. > > > > Private WihEvents YourButton as Office.CommandBarButton > > > > Private Application_Startup() > > Set YourButton=CreateCommandBarButton(Application.ActiveExplorer _ > > .CommandBars) > > End Sub > > > > Private Sub YourButton_Click(ByVal Ctrl As Office.CommandBarButton, > > CancelDefault As Boolean) > > ' here your code goes > > End Sub > > > > Private Function CreateCommandBarButton(oBars As Office.CommandBars) As > > Office.CommandBarButton > > On Error Resume Next > > Dim oMenu As Office.CommandBar > > Dim oBtn As Office.CommandBarButton > > Const BAR_NAME As String = "YourCommandBarName" > > Const CMD_NAME As String = "YourButtonName" > > > > Set oMenu = oBars(BAR_NAME) > > If oMenu Is Nothing Then > > Set oMenu = oBars.Add(BAR_NAME, msoBarTop, , True) > > Set oBtn = oMenu.Controls.Add(msoControlButton, , CMD_NAME, , True) > > oBtn.Caption = CMD_NAME > > oBtn.Tag = CMD_NAME > > > > Else > > Set oBtn = oMenu.FindControl(, , CMD_NAME) > > If oBtn Is Nothing Then > > Set oBtn = oMenu.Controls.Add(msoControlButton, , CMD_NAME, , > > True) > > End If > > End If > > > > oMenu.Visible = True > > Set CreateCommandBarButton = oBtn > > End Function > > > > -- > > Viele Grüße > > Michael Bauer > > I don't use VB.NET for Outlook coding so I have no idea if you can debug
into a non-managed code area in the VS.NET debugger. You might want to look over the information and links at http://www.microeye.com/resources/res_outlookvsnet.htm and see if there's anything there about debugging Outlook addins in VS.NET. -- Show quoteKen Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Luc P Maes" <LucPM***@discussions.microsoft.com> wrote in message news:A031224C-B4F4-4EAA-8AB7-CAD31C6DFBC6@microsoft.com... > Ken, > > That would be great but I tried exactly that with VB.NET and the > newinspector event is firing but as soon as I try to access the inspector > (i.e. to get the CommandBars and add mine) All it does is show the > inspector > window and leave the managed code (I mean that I just can't see anything > else > happening in my debugging session in V Studio) > > Can you help (I've seen your hints for VB6 but am using VB.NET so I tried > to > remain close but...)? > > Code snippet (actually the whole module is in another thread here called > "Outlook CommandBar ID's) > > Thanks a lot in advance. > Cheers > Luc Thanks Ken,
In fact, i'd been there before... but all I can conclude is that despite big marketing on how easy it is to manage office interop with vs .net (vb, cs, js, ..), the fact of the matter. It is not stable nor recommended! Even by micosoft. Then I really wonder why all that marketing mud and the Office PIA for .net... Anyway, I guess I'll find another way.... Thnaks Show quote "Ken Slovak - [MVP - Outlook]" wrote: > I don't use VB.NET for Outlook coding so I have no idea if you can debug > into a non-managed code area in the VS.NET debugger. > > You might want to look over the information and links at > http://www.microeye.com/resources/res_outlookvsnet.htm and see if there's > anything there about debugging Outlook addins in VS.NET. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > "Luc P Maes" <LucPM***@discussions.microsoft.com> wrote in message > news:A031224C-B4F4-4EAA-8AB7-CAD31C6DFBC6@microsoft.com... > > Ken, > > > > That would be great but I tried exactly that with VB.NET and the > > newinspector event is firing but as soon as I try to access the inspector > > (i.e. to get the CommandBars and add mine) All it does is show the > > inspector > > window and leave the managed code (I mean that I just can't see anything > > else > > happening in my debugging session in V Studio) > > > > Can you help (I've seen your hints for VB6 but am using VB.NET so I tried > > to > > remain close but...)? > > > > Code snippet (actually the whole module is in another thread here called > > "Outlook CommandBar ID's) > > > > Thanks a lot in advance. > > Cheers > > Luc > > |
|||||||||||||||||||||||