473,625 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom IE Toolbar IE6 C#

I am developing a toolbar for IE6. I have referenced the sample project
provided at http://www.codeproject.com/csharp/dotnetbandobjects.asp and the
msdn article "Creating Custom Explorer Bars, Tool Bands, and Desk Bands". I
have followed the instructions and installed the samplebar.dll and the
bandobjectslib. dll into the GAC using gacutil as well as performed a regasm
on the samplebar.dll. After doing these things I do see the menu items under
View->Toolbars and under all the other locations. My problem is that after
clicking the toolbar one and the deskband nothing happens. When clicking the
one under "explorer bar" I get a blank horizontal band at the bottom. These
bands should include a button according to the sample and from what I can
determine from the code. I have reviewed posts on codeproject and see that
one other person has experienced this issue but has yet to receive a
response. I have confirmed that the registry entries match what is expected
also. Any help such as debugging tips for these types of applications would
be most helpful. Below is my system and compiler info.

Windows XP Pro SP2
Internet Explorer 6 SP2
Visual Studio 2005 Standard
Jun 30 '06 #1
11 7602
EmeraldShield,

I would opt to not place the assembly in the GAC (for debugging) and
when registering using REGASM use the /codebase option.

Then, you can run your project in the debugger, and then run IE, and you
should be able to debug it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"EmeraldShi eld" <em***********@ noemail.noemail > wrote in message
news:e1******** ******@TK2MSFTN GP05.phx.gbl...
I am developing a toolbar for IE6. I have referenced the sample project
provided at http://www.codeproject.com/csharp/dotnetbandobjects.asp and the
msdn article "Creating Custom Explorer Bars, Tool Bands, and Desk Bands". I
have followed the instructions and installed the samplebar.dll and the
bandobjectslib .dll into the GAC using gacutil as well as performed a regasm
on the samplebar.dll. After doing these things I do see the menu items
under View->Toolbars and under all the other locations. My problem is that
after clicking the toolbar one and the deskband nothing happens. When
clicking the one under "explorer bar" I get a blank horizontal band at the
bottom. These bands should include a button according to the sample and
from what I can determine from the code. I have reviewed posts on
codeproject and see that one other person has experienced this issue but
has yet to receive a response. I have confirmed that the registry entries
match what is expected also. Any help such as debugging tips for these
types of applications would be most helpful. Below is my system and
compiler info.

Windows XP Pro SP2
Internet Explorer 6 SP2
Visual Studio 2005 Standard

Jun 30 '06 #2
Ok, I can now debug the app. My situation now is that after setting the
basic information (minsize, title, etc.) Explorer is disposing me via
CloseDW. I am never seeing any other functions on the interface nor the
OnExplorerAttac hed event get called. Is there a sample solution that
Microsoft provides for IE Toolbar development under .NET?

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:%2******** *******@TK2MSFT NGP03.phx.gbl.. .
EmeraldShield,

I would opt to not place the assembly in the GAC (for debugging) and
when registering using REGASM use the /codebase option.

Then, you can run your project in the debugger, and then run IE, and
you should be able to debug it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"EmeraldShi eld" <em***********@ noemail.noemail > wrote in message
news:e1******** ******@TK2MSFTN GP05.phx.gbl...
I am developing a toolbar for IE6. I have referenced the sample project
provided at http://www.codeproject.com/csharp/dotnetbandobjects.asp and
the msdn article "Creating Custom Explorer Bars, Tool Bands, and Desk
Bands". I have followed the instructions and installed the samplebar.dll
and the bandobjectslib. dll into the GAC using gacutil as well as performed
a regasm on the samplebar.dll. After doing these things I do see the menu
items under View->Toolbars and under all the other locations. My problem
is that after clicking the toolbar one and the deskband nothing happens.
When clicking the one under "explorer bar" I get a blank horizontal band
at the bottom. These bands should include a button according to the sample
and from what I can determine from the code. I have reviewed posts on
codeproject and see that one other person has experienced this issue but
has yet to receive a response. I have confirmed that the registry entries
match what is expected also. Any help such as debugging tips for these
types of applications would be most helpful. Below is my system and
compiler info.

Windows XP Pro SP2
Internet Explorer 6 SP2
Visual Studio 2005 Standard


Jun 30 '06 #3
Hi EmeraldShield,

Thank you posting!

Based on my understanding, the problem is you developed a C# toolbar
plug-in for IE6 based on a popular codeproject sample. But your plug-in
could not seeing any other functions on the interface nor the
OnExplorerAttac hed event get called. Please correct me if I misunderstood.

Since the IE6 toolbar plug-in is a shell programming issue, and it would be
more convenient to develop with a native program. So currently we don't
have a sample solution for IE Toolbar development under .NET. The Pavel
Zolnikov's sample is an excellent sample on such a field.

In order to isolate this problem, would you please provide more detailed
info about your program, how do you implement the plug-in, does your
approach have much difference from Pavel's sample?
Thanks !

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 3 '06 #4
You understand correctly. The issue I am encountering is with that sample
project with NO modifications other than what Visual Studio has done to it
during the conversion to 2005. From what I have read on the codeproject site
one other person had the exact same issue but no reply ever came to his
post. So I am at a lost at where to begin to develop my own version since
the sample does not work for me. I have tried the coversion, compile and
execution on 2 machines with the same result. Any thoughts?
""Gary Chang[MSFT]"" <v-******@online.m icrosoft.comwro te in message
news:bJ******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi EmeraldShield,

Thank you posting!

Based on my understanding, the problem is you developed a C# toolbar
plug-in for IE6 based on a popular codeproject sample. But your plug-in
could not seeing any other functions on the interface nor the
OnExplorerAttac hed event get called. Please correct me if I misunderstood.

Since the IE6 toolbar plug-in is a shell programming issue, and it would
be
more convenient to develop with a native program. So currently we don't
have a sample solution for IE Toolbar development under .NET. The Pavel
Zolnikov's sample is an excellent sample on such a field.

In order to isolate this problem, would you please provide more detailed
info about your program, how do you implement the plug-in, does your
approach have much difference from Pavel's sample?
Thanks !

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Jul 3 '06 #5
Hi EmeraldShield,
>The issue I am encountering is with that sample
project with NO modifications other than what
Visual Studio has done to it during the conversion
to 2005.
OK, I got it. You convert that VS2002 sample to VS2005, but it will not
prompt the messagebox when you click the "Say Hello" button in its say
hello toolbar.

I also download that sample and convert it into VS2005, it works well on my
side. I just modify that upgraded projects' signing approach, its original
signing method seems not work in VS2005. I comment out the following code
lines in BandObjectLib project and SampleBars project respectively:

Line 16 of BandObject.cs in BandObjectLib project
///[assembly: AssemblyKeyFile (@"..\..\..\Ban dObjects.snk")]

Line 57 of assemblyinfo.cs in SampleBars project's
///[assembly: AssemblyKeyFile (@"..\..\..\Ban dObjects.snk")]

Then singing both projects' assemblies via the VS2005 IDE:
Project Properties | Signing | Check the "Sign the assembly" option and
select the BandObjects.snk in the 'Choose a strong name key file:' entry
(use the <browseoption to locate that sample key file).

Wish this also works on your side!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 4 '06 #6
Correct, except that I do not even see the button. I can only see the menu's
which are setup by the registry. I did comment the lines you mentioned and
used the IDE to sign. When debugging it manages to setup the objects title
and such after being called from the explorer menu. But instead of
displaying the button on the toolbar dispose fires and nothing else happens.
Any ideas what may be setup incorrectly to cause this?

""Gary Chang[MSFT]"" <v-******@online.m icrosoft.comwro te in message
news:OW******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hi EmeraldShield,
>>The issue I am encountering is with that sample
project with NO modifications other than what
Visual Studio has done to it during the conversion
to 2005.

OK, I got it. You convert that VS2002 sample to VS2005, but it will not
prompt the messagebox when you click the "Say Hello" button in its say
hello toolbar.

I also download that sample and convert it into VS2005, it works well on
my
side. I just modify that upgraded projects' signing approach, its original
signing method seems not work in VS2005. I comment out the following code
lines in BandObjectLib project and SampleBars project respectively:

Line 16 of BandObject.cs in BandObjectLib project
///[assembly: AssemblyKeyFile (@"..\..\..\Ban dObjects.snk")]

Line 57 of assemblyinfo.cs in SampleBars project's
///[assembly: AssemblyKeyFile (@"..\..\..\Ban dObjects.snk")]

Then singing both projects' assemblies via the VS2005 IDE:
Project Properties | Signing | Check the "Sign the assembly" option and
select the BandObjects.snk in the 'Choose a strong name key file:' entry
(use the <browseoption to locate that sample key file).

Wish this also works on your side!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.

Jul 5 '06 #7
Here is an exact step by step list of the actions I am taking.

1. Extract zip to test folder.
2. Comment out Line 16 of BandObject.cs in BandObjectLib project.
3. Sign assembly via the IDE for BandObjectLib project using the provided
snk.
4. Build solution and run gacutil /if on the dll.
5. Comment out line 57 of assemblyinfo.cs in SampleBars project.
6. Sign assembly via the IDE for SampleBars project.
7. Choose correct path for explorer.exe to be used for debugging.
8. Build SampleBars project.
9. Run gacutil /if on the the samplebars.dll.
10. Run regasm /codebase on samplebars.dll.
11. Launch solution via debug mode.

Once I do this I can see the menu's as explained earlier but at no point can
I get the button to display. Dispose always fires right after the
constructor sets the objects fields. I hope I have clarified my actions to
better help you assist me. Thanks.

"EmeraldShi eld" <em***********@ noemail.noemail wrote in message
news:ON******** ******@TK2MSFTN GP02.phx.gbl...
Correct, except that I do not even see the button. I can only see the
menu's which are setup by the registry. I did comment the lines you
mentioned and used the IDE to sign. When debugging it manages to setup the
objects title and such after being called from the explorer menu. But
instead of displaying the button on the toolbar dispose fires and nothing
else happens. Any ideas what may be setup incorrectly to cause this?

""Gary Chang[MSFT]"" <v-******@online.m icrosoft.comwro te in message
news:OW******** ******@TK2MSFTN GXA01.phx.gbl.. .
>Hi EmeraldShield,
>>>The issue I am encountering is with that sample
project with NO modifications other than what
Visual Studio has done to it during the conversion
to 2005.

OK, I got it. You convert that VS2002 sample to VS2005, but it will not
prompt the messagebox when you click the "Say Hello" button in its say
hello toolbar.

I also download that sample and convert it into VS2005, it works well on
my
side. I just modify that upgraded projects' signing approach, its
original
signing method seems not work in VS2005. I comment out the following code
lines in BandObjectLib project and SampleBars project respectively:

Line 16 of BandObject.cs in BandObjectLib project
///[assembly: AssemblyKeyFile (@"..\..\..\Ban dObjects.snk")]

Line 57 of assemblyinfo.cs in SampleBars project's
///[assembly: AssemblyKeyFile (@"..\..\..\Ban dObjects.snk")]

Then singing both projects' assemblies via the VS2005 IDE:
Project Properties | Signing | Check the "Sign the assembly" option and
select the BandObjects.snk in the 'Choose a strong name key file:' entry
(use the <browseoption to locate that sample key file).

Wish this also works on your side!

Best regards,

Gary Chang
Microsoft Online Community Support
============== =============== =============== ======
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============== =============== =============== ======
This posting is provided "AS IS" with no warranties, and confers no
rights.


Jul 5 '06 #8
Apparently it is either the fact I installed stuff to the gac or something
that is wrong that both of those machines share in common. I have followed
the most simplistic outline and did not install to the gac on one of my
personal machines. Here I only ran regasm and I am finding the solution to
work properly as you mentioned. Thank you for your help. Would you say that
the installation to the GAC caused this issue?
"EmeraldShi eld" <em***********@ noemail.noemail wrote in message
news:Og******** ******@TK2MSFTN GP05.phx.gbl...
Here is an exact step by step list of the actions I am taking.

1. Extract zip to test folder.
2. Comment out Line 16 of BandObject.cs in BandObjectLib project.
3. Sign assembly via the IDE for BandObjectLib project using the provided
snk.
4. Build solution and run gacutil /if on the dll.
5. Comment out line 57 of assemblyinfo.cs in SampleBars project.
6. Sign assembly via the IDE for SampleBars project.
7. Choose correct path for explorer.exe to be used for debugging.
8. Build SampleBars project.
9. Run gacutil /if on the the samplebars.dll.
10. Run regasm /codebase on samplebars.dll.
11. Launch solution via debug mode.

Once I do this I can see the menu's as explained earlier but at no point
can I get the button to display. Dispose always fires right after the
constructor sets the objects fields. I hope I have clarified my actions to
better help you assist me. Thanks.

"EmeraldShi eld" <em***********@ noemail.noemail wrote in message
news:ON******** ******@TK2MSFTN GP02.phx.gbl...
>Correct, except that I do not even see the button. I can only see the
menu's which are setup by the registry. I did comment the lines you
mentioned and used the IDE to sign. When debugging it manages to setup
the objects title and such after being called from the explorer menu. But
instead of displaying the button on the toolbar dispose fires and nothing
else happens. Any ideas what may be setup incorrectly to cause this?

""Gary Chang[MSFT]"" <v-******@online.m icrosoft.comwro te in message
news:OW******* *******@TK2MSFT NGXA01.phx.gbl. ..
>>Hi EmeraldShield,

The issue I am encountering is with that sample
project with NO modifications other than what
Visual Studio has done to it during the conversion
to 2005.

OK, I got it. You convert that VS2002 sample to VS2005, but it will not
prompt the messagebox when you click the "Say Hello" button in its say
hello toolbar.

I also download that sample and convert it into VS2005, it works well on
my
side. I just modify that upgraded projects' signing approach, its
original
signing method seems not work in VS2005. I comment out the following
code
lines in BandObjectLib project and SampleBars project respectively:

Line 16 of BandObject.cs in BandObjectLib project
///[assembly: AssemblyKeyFile (@"..\..\..\Ban dObjects.snk")]

Line 57 of assemblyinfo.cs in SampleBars project's
///[assembly: AssemblyKeyFile (@"..\..\..\Ban dObjects.snk")]

Then singing both projects' assemblies via the VS2005 IDE:
Project Properties | Signing | Check the "Sign the assembly" option and
select the BandObjects.snk in the 'Choose a strong name key file:' entry
(use the <browseoption to locate that sample key file).

Wish this also works on your side!

Best regards,

Gary Chang
Microsoft Online Community Support
============= =============== =============== =======
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============= =============== =============== =======
This posting is provided "AS IS" with no warranties, and confers no
rights.



Jul 5 '06 #9
Hi EmeraldShield,

Thanks for your detailed steps, it seems OK. But I am not very clear why it
doesn't work on your side. It just runs well on my Windows XP SP2 machine.

I think you may also test my revised sample projects on your machine. Would
you please provide a valid email address to me for sending the projects,
you can contact me directly via my email box. (just remove the "online" of
my email address alias).

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 6 '06 #10

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

Similar topics

0
1422
by: Tom Dauria | last post by:
I inherited a weird application. Part of it is in VB6 and part in Access 2000. All of the reports and some of the forms are in Access 2000. The database is opened by the VB application. Anyway I created a custom menu/toolbar. When the VB app opens the Access database the original full menu is there even though in the form/report I have picked my own menu/toolbar. However the full menu is not active. When you click on it nothing...
4
5596
by: Jason Tabert | last post by:
Is there a way to create a custom IE toolbar with C# (or anything else in ..NET for that matter)? I have been looking all day and have had no luck finding a good place to start. I need to make a toolbar for a research project that does some things with existing code that we've written. We need to get working on making the toolbar *do things* but I can't even get started with making a basic toolbar. Any suggestions would be much...
1
1494
by: pnp | last post by:
Is there any way to place a Toolbar at a custom Location? How could I stop it from drawing itself at the top of my form? What I came up with so far is to create a custom form that has a ToolBar in it and use Accessor functions for all it's properties... Is there another way? Thanks, Peter
5
2477
by: Mary Anne | last post by:
One of my clients is using Acc97 runtime to run an Access application. The application has a Custom Toolbar, but she excluded the toolbar from the application. Now, I cannot display the toolbar again. Because it is a runtime, there is no "View" menu. I tried to replace the application with a zipped copy, but even that did not bring the toolbar back. Is there any way to bring the toolbar back? Thanks in advance.
1
1751
by: jeff blumsom | last post by:
This is bizarre! I have an big (90+ tables, over 100 forms) application that has a custom toolbar. This is set as the default toolbar in the start-up options. It is also the toolbar assigned to the first visible form that fires up. When a second user log in to the program file (the data is in a back-end file) the following message appears: "You do not have exclusive access to the database at this time. If you proceed to make...
27
45536
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same height as they were in previous versions or will they be the "ribbon" style that takes up a huge portion of the screen? Also when I use Access 2007 to open an Access 2003 database that has custom menu bars they display as they did in Access...
15
6505
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
1
3233
by: adrianm4380 | last post by:
Is it possible to call the on click event procedure for a command button on a custom toolbar? I have a menu of buttons that open various forms in varying ways that are all controlled in the on click event. I would like to be able to reference these events in a custom toolbar instead of creating macros. If I can create code to open a form in VBA why can't I use that code to open the form from the toolbar? Can someone explain to me how this...
3
1753
by: eighthman11 | last post by:
Hi Everyone, In Access 2003. I created a custom toolbar that I show whenever someone opens a REPORT. My application is on a server. I noticed when I tried to open even the simpliest reports it was taking forever. I removed the code that shows my custom toolbar on the open event of the report and now my reports open immediately but I no longer have my custom tool bar. Has anyone else ran into this problem and if so did you find a
0
2208
by: Sky | last post by:
I have an Access 2003 front-end database with custom toolbars. The toolbars work fine. One annoying feature is that at the far right edge of each custom toolbar there a small dropdown arrow. When you hover over it with the mouse, a ControlTip Text of "Toolbar Options" is displayed. If you then click on the dropdrown arrow, it displays a popup menu of "Add or Remove Buttons", with a fly-out menu with the toolbar name at the top and...
0
8251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8688
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7178
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4085
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.