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

Custom IE Toolbar with C#?

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 appreciated. I've read about 10 different
ways of doing things but none of them have either worked or been much help,
and MSDN is confusing me more each time instead of helping...It seems like I
should be able to fire up VS.NET 2003 and click on something simple and get
to work but I certainly haven't found how to do that.

Thanks in advance!

~Jason
--
'***************************************
'* Jason R. Tabert
'* Student, University of Washington, Informatics
'*
'* jr******@u.washington.edu
'* http://www.placelab.org/
'***************************************
Nov 15 '05 #1
4 5585
Jason,

Yes, it is possible but it does require a bit of work. I have written a C#
toolbar (a 'managed' .NET upgrade of my existing ATL toolbar from a few
years ago). Some of things you need to look into are :

1) Writing a base class that derives from System.Windows.Forms.UserControl
and implementing the follwoing interfaces...
- IObjectWithSite
- IDeskBand
- IDockingWindow
- IOleWindow
- IInputObject
2) Handling type conversion from unmanaged to managed types. This can be
tricky cause of disparate differences between the two.

3) You will need to strong name your derived class for gac registration.
This class must reside in the gac.

4) Using regasm to register the types necessary

Unfortunately there is no 'easy' way thru VS to simply do these things for
you, but, for what it's worth, once you have generated this 'base' class
that implements the required COM interfaces, you shouldn't need to ever deal
with it again.

HTH,

Alex

"Jason Tabert" <jr******@u.washington.edu> wrote in message
news:u8**************@TK2MSFTNGP12.phx.gbl...
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 appreciated. I've read about 10 different
ways of doing things but none of them have either worked or been much help, and MSDN is confusing me more each time instead of helping...It seems like I should be able to fire up VS.NET 2003 and click on something simple and get to work but I certainly haven't found how to do that.

Thanks in advance!

~Jason
--
'***************************************
'* Jason R. Tabert
'* Student, University of Washington, Informatics
'*
'* jr******@u.washington.edu
'* http://www.placelab.org/
'***************************************

Nov 15 '05 #2
Trebek and Jason,

Most of this has been done already. Check out the article on The Code
Project website titled "Extending Explorer with Band Objects using .NET and
Windows Forms", located at (watch for line wrap):

http://www.codeproject.com/csharp/dotnetbandobjects.asp

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Trebek" <tr****@intheformofaquestion.com> wrote in message
news:3f***********************@nnrp.fuse.net...
Jason,

Yes, it is possible but it does require a bit of work. I have written a C# toolbar (a 'managed' .NET upgrade of my existing ATL toolbar from a few
years ago). Some of things you need to look into are :

1) Writing a base class that derives from System.Windows.Forms.UserControl and implementing the follwoing interfaces...
- IObjectWithSite
- IDeskBand
- IDockingWindow
- IOleWindow
- IInputObject
2) Handling type conversion from unmanaged to managed types. This can be tricky cause of disparate differences between the two.

3) You will need to strong name your derived class for gac registration.
This class must reside in the gac.

4) Using regasm to register the types necessary

Unfortunately there is no 'easy' way thru VS to simply do these things for
you, but, for what it's worth, once you have generated this 'base' class
that implements the required COM interfaces, you shouldn't need to ever deal with it again.

HTH,

Alex

"Jason Tabert" <jr******@u.washington.edu> wrote in message
news:u8**************@TK2MSFTNGP12.phx.gbl...
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 appreciated. I've read about 10 different
ways of doing things but none of them have either worked or been much help,
and MSDN is confusing me more each time instead of helping...It seems

like I
should be able to fire up VS.NET 2003 and click on something simple and

get
to work but I certainly haven't found how to do that.

Thanks in advance!

~Jason
--
'***************************************
'* Jason R. Tabert
'* Student, University of Washington, Informatics
'*
'* jr******@u.washington.edu
'* http://www.placelab.org/
'***************************************


Nov 15 '05 #3
What about using Band Objects?
http://www.codeproject.com/csharp/dotnetbandobjects.asp
I followed the sample HelloWorldBar and that made it quite simple to do what
I wanted.

I used Pavel Zolnikov's Band Object assembly to create a little toolbar
similar to the google toolbar. My toolbar's purpose was pretty simple: when
I click on the toolbar, the current web page is searched for all the href
links and I then store those links to a file. I read the html using
microsoft.mshtml assembly.

Taylor

"Jason Tabert" <jr******@u.washington.edu> wrote in message
news:u8**************@TK2MSFTNGP12.phx.gbl...
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 appreciated. I've read about 10 different
ways of doing things but none of them have either worked or been much help, and MSDN is confusing me more each time instead of helping...It seems like I should be able to fire up VS.NET 2003 and click on something simple and get to work but I certainly haven't found how to do that.

Thanks in advance!

~Jason
--
'***************************************
'* Jason R. Tabert
'* Student, University of Washington, Informatics
'*
'* jr******@u.washington.edu
'* http://www.placelab.org/
'***************************************

Nov 15 '05 #4
I placed a textbox on toolbar but i am unable to use BackSpace key in
it
somebody told me to implement IInputObject Interface,

can anyone tell me how can I do it and then use to enable backspace for
the toolbar?

Thanks
-adnan
Nicholas Paldino [.NET/C# MVP] wrote:
Trebek and Jason,

Most of this has been done already. Check out the article on The Code Project website titled "Extending Explorer with Band Objects using ..NET and Windows Forms", located at (watch for line wrap):

http://www.codeproject.com/csharp/dotnetbandobjects.asp

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Trebek" <tr****@intheformofaquestion.com> wrote in message
news:3f***********************@nnrp.fuse.net...
Jason,

Yes, it is possible but it does require a bit of work. I have written a
C#
toolbar (a 'managed' .NET upgrade of my existing ATL toolbar from a few years ago). Some of things you need to look into are :

1) Writing a base class that derives from System.Windows.Forms.UserControl
and implementing the follwoing interfaces...
- IObjectWithSite
- IDeskBand
- IDockingWindow
- IOleWindow
- IInputObject
2) Handling type conversion from unmanaged to managed types. This can be
tricky cause of disparate differences between the two.

3) You will need to strong name your derived class for gac
registration. This class must reside in the gac.

4) Using regasm to register the types necessary

Unfortunately there is no 'easy' way thru VS to simply do these things for you, but, for what it's worth, once you have generated this 'base' class that implements the required COM interfaces, you shouldn't need to ever deal
with it again.

HTH,

Alex

"Jason Tabert" <jr******@u.washington.edu> wrote in message
news:u8**************@TK2MSFTNGP12.phx.gbl...
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 appreciated. I've read about 10
different ways of doing things but none of them have either worked or been

much help,
and MSDN is confusing me more each time instead of helping...It
seems like
I
should be able to fire up VS.NET 2003 and click on something

simple and get
to work but I certainly haven't found how to do that.

Thanks in advance!

~Jason
--
'***************************************
'* Jason R. Tabert
'* Student, University of Washington, Informatics
'*
'* jr******@u.washington.edu
'* http://www.placelab.org/
'***************************************



Nov 16 '05 #5

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. ...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
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
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...

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.