debugging for IE in VS 2008

Add-in Express™ Support Service
That's what is more important than anything else

debugging for IE in VS 2008
 
Bill Sherman




Posts: 20
Joined: 2011-05-17
Sergey Grischenko wrote:
Please try to unregister the toolbar. Do you see it in the Add-ons Manager in IE after unregistration?


I un-registered the add-on, and it no longer appears in the Add-Ons Manager in IE.
Posted 18 May, 2011 08:33:45 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Bill, does a breakpoint work if you add it to the OnConnect event handler of the ie module?
Posted 18 May, 2011 08:58:43 Top
Bill Sherman




Posts: 20
Joined: 2011-05-17
Sergey Grischenko wrote:
Bill, does a breakpoint work if you add it to the OnConnect event handler of the ie module?


No
Posted 18 May, 2011 09:42:01 Top
Bill Sherman




Posts: 20
Joined: 2011-05-17
Sergey Grischenko wrote:
Bill, to enable the toolbar at runtime you can use ShowBrowserBar method of IE object model.


Sergey:

The ShowBrowserBar method works well if I combine it with calls to

adxieToolBarItem1.ToolBarObj.Show();

This lets me deal with both cases:

a) ToolBarObj is null (not loaded properly because removed in previous session)
and
b) ToolBarObj is not null, but is hidden.

My code looks like this:

if (adxieToolBarItem1.ToolBarObj == null)
{
ShowBrowserBar(new Guid(<<my guid>>), true);
}
else
{
if (!adxieToolBarItem1.ToolBarObj.Visible)
{
adxieToolBarItem1.ToolBarObj.Show();
}
}

Thanks!
Posted 18 May, 2011 09:57:11 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Thank you for sharing your solution.
The Show method of the toolbar calls ShowBrowserBar internally.
Posted 18 May, 2011 10:37:01 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Bill, I can't reproduce the issue with the debugger. Are you able to debug any other projects like Windows Forms Application? If so, please send me your project. I will test it on my PC.
Posted 18 May, 2011 10:39:26 Top
Bill Sherman




Posts: 20
Joined: 2011-05-17
Sergey Grischenko wrote:
The Show method of the toolbar calls ShowBrowserBar internally.


Correct, but if the ToolBarObj property is null, I cannot call its .Show() method; of course this raises a "null reference" error.

Therefore I have to do both, as above. If .ToolBarObj == null, then I use ShowBrowserBar.

But if .ToolBarObj is NOT null, then I still have to call its .Show() method if it is hidden (not Visible).
Posted 18 May, 2011 10:41:33 Top
Bill Sherman




Posts: 20
Joined: 2011-05-17
Sergey Grischenko wrote:
Bill, I can't reproduce the issue with the debugger. Are you able to debug any other projects like Windows Forms Application? If so, please send me your project. I will test it on my PC.


Yes, my VS debugger works correctly in other situations. I will try to send you my files.
Posted 18 May, 2011 10:42:27 Top
Bill Sherman




Posts: 20
Joined: 2011-05-17
Sergey:

Is there an email address I can use to send you my files? Clicking your name in the forum does not take me to a profile page; I do not see an email address for you.

If not, I will try to upload the files somewhere. Please advise if you have any suggestions. I am not able to upload anything to an external-facing web server within my company.

-Bill
Posted 18 May, 2011 10:56:24 Top
Sergey Grischenko


Add-in Express team


Posts: 7224
Joined: 2004-07-05
Hi Bill,

You can find the support email in the readme.txt file located in the Add-in Express installation folder.
Posted 19 May, 2011 05:07:08 Top