473,378 Members | 1,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

ShowBrowserBar failing


I'm calling ShowBrowserBar to programmatically show or hide my own IE
InfoBand (IE side panel). In my app, the BHO and IE InfoBand are separate
COM objects in a single DLL. This function fails if this particular IE side
panel hasn't previously been displayed manually (by going to
View->ExplorerBar). Works fine if I manually view the browser bar first,
then close it and then call ShowBrowserBar.

It seems ShowBrowserBar is being called before the explorer bar has been
created. But, I'm not calling ShowBrowserBar before IE has had a chance to
initialize. By the time ShowBrowserBar is called, IE has been open and
several pages visited.

How can I programmatically force the creation of the explorer bar so that
ShowBrowserBar doesn't fail if the bar has never been displayed?

Here's my code for calling ShowBrowserBar:

Thanks!
string clsid = "{8AD54A97-E2F0-41b9-A47B-9E871382C346}";

object clsObj = (object)clsid;

object ShoObj = (object)bShow;

int arg = 0;

object argObj = (object)arg;

webBrowser.ShowBrowserBar( ref clsObj, ref ShoObj, ref argObj );
Nov 16 '05 #1
1 3251
"Dean Hallman" <de***@sc.rr.com> wrote in message
news:S%*******************@twister.southeast.rr.co m
I'm calling ShowBrowserBar to programmatically show or hide my own IE
InfoBand (IE side panel). In my app, the BHO and IE InfoBand are
separate COM objects in a single DLL. This function fails if this
particular IE side panel hasn't previously been displayed manually
(by going to View->ExplorerBar). Works fine if I manually view the
browser bar first, then close it and then call ShowBrowserBar.


Call ShowBrowserBar twice in a row - once to hide and again to show.
Under certain circumstances, IE gets confused as to whether the band is
already displayed or not. Calling ShowBrowserBar twice clears this
confusion.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sundeep Gawande | last post by:
I am facing a strange problem. I am trying to host a .NET(C#) control in a VC6 COM ocx. Now when I create the control using CreateControl(...) or CoCreateInstance(...) my call is failing with...
7
by: Kieran Simkin | last post by:
Hi all, I'm having some trouble with a linked list function and was wondering if anyone could shed any light on it. Basically I have a singly-linked list which stores pid numbers of a process's...
3
by: bob | last post by:
Hello, I've tried a few testing frameworks with C# but so far haven't found a way to debug into a failing test. I'm used to S Unit (Smalltalk) where when a test fails you just right click on it...
1
by: Susan | last post by:
Basically, I am trying to add a back and forward button to my AxWebBrowser so I'm trying to use ShowBrowserBar. Has anyone ever used the command this.axWebBrowser1.ShowBrowserBar(ref object...
1
by: Frank Rizzo | last post by:
Hello, I have a bunch of thread in my app doing variuos things. One of them is failing at some point in the app and I can't (actually don't know how) figure out which one it is. Is there a way to...
3
by: Michael Tissington | last post by:
I'm using LoadLibrary to import a DLL in a asp.net application. The dll was written in c++ and is located in the bin folder I have been testing the website on my development machine and our...
18
by: Scott David Daniels | last post by:
There has been a bit of discussion about a way of providing test cases in a test suite that _should_ work but don't. One of the rules has been the test suite should be runnable and silent at every...
0
by: a_rajanikanth | last post by:
Hi, The following is the trigger which is failing when executing. Can you please tell me the reason why it is failing ? Trigger got created but throwing exception. CREATE TRIGGER TOBJ_U...
3
by: noon | last post by:
I'm runing an xmlHttpRequest to get the site's source code and then applying the regex xhr.responseText.split(/<body*>((?:.|\n)*)<\/body>/i) Works for google.com. Fails on yahoo.com and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.