473,396 Members | 2,055 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,396 software developers and data experts.

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 7589
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.com

"EmeraldShield" <em***********@noemail.noemail> wrote in message
news:e1**************@TK2MSFTNGP05.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
OnExplorerAttached 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.com> wrote in
message news:%2***************@TK2MSFTNGP03.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.com

"EmeraldShield" <em***********@noemail.noemail> wrote in message
news:e1**************@TK2MSFTNGP05.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
OnExplorerAttached 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.microsoft.comwrote in message
news:bJ**************@TK2MSFTNGXA01.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
OnExplorerAttached 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(@"..\..\..\BandObjects.snk")]

Line 57 of assemblyinfo.cs in SampleBars project's
///[assembly: AssemblyKeyFile(@"..\..\..\BandObjects.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.microsoft.comwrote in message
news:OW**************@TK2MSFTNGXA01.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(@"..\..\..\BandObjects.snk")]

Line 57 of assemblyinfo.cs in SampleBars project's
///[assembly: AssemblyKeyFile(@"..\..\..\BandObjects.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.

"EmeraldShield" <em***********@noemail.noemailwrote in message
news:ON**************@TK2MSFTNGP02.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.microsoft.comwrote in message
news:OW**************@TK2MSFTNGXA01.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(@"..\..\..\BandObjects.snk")]

Line 57 of assemblyinfo.cs in SampleBars project's
///[assembly: AssemblyKeyFile(@"..\..\..\BandObjects.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?
"EmeraldShield" <em***********@noemail.noemailwrote in message
news:Og**************@TK2MSFTNGP05.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.

"EmeraldShield" <em***********@noemail.noemailwrote in message
news:ON**************@TK2MSFTNGP02.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.microsoft.comwrote in message
news:OW**************@TK2MSFTNGXA01.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(@"..\..\..\BandObjects.snk")]

Line 57 of assemblyinfo.cs in SampleBars project's
///[assembly: AssemblyKeyFile(@"..\..\..\BandObjects.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
The problem is this: vs_piaredist.exe

Why are the primary interop assemblies not included with 2.0 normal setup?
They are on all my development machines, but not on end user machines.

And while I am complaining... Why can't you reference that in the built in
setup builder? There is no merge module for setting them up. Telling my
users they have to install it by hand is not an option.

""Gary Chang[MSFT]"" <v-******@online.microsoft.comwrote in message
news:b3**************@TK2MSFTNGXA01.phx.gbl...
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.

Sep 21 '06 #11
Hi EmeraldShield,

I am afraid that redistribute is not a .NET 2.0 setup project's basic
prerequisite component. But there is a problem the setup project unable to
check out that dependency. I will forward this issue to our corresponding
product team for review.

Thanks for your feedback!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 21 '06 #12

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

Similar topics

0
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. ...
4
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...
1
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...
5
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...
1
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...
27
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...
15
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...
1
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...
3
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...
0
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....
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.