Click here to Skip to main content
6,597,576 members and growing! (22,222 online)
Email Password   helpLost your password?
Languages » VB.NET » General     Intermediate

make a VB.Net toolbar for Internet explorer

By sohrabi

this source code help you to make a toolbar with Band Objects in VB.net
C++, VB, Windows, .NET 1.1, ATL, VS.NET2003, Dev
Posted:22 May 2005
Views:79,067
Bookmarked:34 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
11 votes for this article.
Popularity: 2.15 Rating: 2.06 out of 5
6 votes, 54.5%
1
2 votes, 18.2%
2

3
1 vote, 9.1%
4
2 votes, 18.2%
5

Sample Image - VB-IE-Toolbar.jpg

Introduction

Five days ago , i searched for an example for IE toolbars in VB.net , but i found only one source code in C# . Please take a look to this article By Pavel Zolnikov before read my article! many people wrote some thread for Pavel for some source code of bands objects in VB because there are many problem in converting this source code from C# to Vb ! im a VB programmer and when i write a new version of this toolbar in VB , i decide to put it in the Code Project for Other people that search for it later ;).

 

Some source code of IE toolbar in VB.net

 

make a refrence of bandobject.dll for your form


Imports System
Imports System.ComponentModel
Imports System.Windows.Forms
Imports BandObjectLib
Imports System.Runtime.InteropServices

<Guid("AE07101B-46D4-4a98-AF68-0333EA26E113"), 
_
BandObjectAttribute("Shokouh Bar", BandObjectStyle.Horizontal Or BandObjectStyle.ExplorerToolbar Or BandObjectStyle.TaskbarToolBar, HelpText:="Shows bar that says hello.")> _
Public Class SampleBars
Inherits BandObject

this application make a Persian text box for an online dictionary too ,

Public Function e2f(ByVal key As Integer, ByVal shift As Boolean) As String
Try



Dim str As String
str = Chr(key)

If shift = False Then
Dim fa() As String = {"&#1590;", "&#1589;", "&#1579;", "&#1602;", "&#1601;", "&#1594;", "&#1593;", "&#1607;", "&#1582;", "&#1581;", "&#1580;", "&#1670;", "&#1588;", "&#1587;", "&#1610;", "&#1576;", "&#1604;", "&#1575;", "&#1578;", "&#1606;", "&#1605;", "&#1705;", "&#1711;", "&#1592;", "&#1591;", "&#1586;", "&#1585;", "&#1584;", "&#1583;", "&#1574;", "&#1608;", "&#1662;", "&#1688;", "&#1572;", " "}
Dim en() As String = {"Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", Chr(219), Chr(221), "A", "S", "D", "F", "G", "H", "J", "K", "L", Chr(186), Chr(222), "Z", "X", "C", "V", "B", "N", "M", Chr(188), Chr(192), Chr(220), "<", " "}
If System.Array.IndexOf(en, str) > -1 Then
e2f = fa.GetValue(System.Array.IndexOf(en, str))
End If
ElseIf shift = True Then
Dim fa() As String = {"&#1590;", "&#1589;", "&#1579;", "&#1602;", "&#1601;", "&#1594;", "&#1593;", "&#1607;", "&#1582;", "&#1581;", "&#1580;", "&#1670;", "&#1588;", "&#1587;", "&#1610;", "&#1576;", "&#1604;", "&#1575;", "&#1578;", "&#1606;", "&#1605;", "&#1705;", "&#1711;", "&#1592;", "&#1591;", "&#1586;", "&#1585;", "&#1584;", "&#1583;", "&#1574;", "&#1572;", "&#1662;", "&#1688;", "&#1572;", " "}
Dim en() As String = {"Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", Chr(219), Chr(221), "A", "S", "D", "F", "G", "H", "J", "K", "L", Chr(186), Chr(222), "Z", "X", "C", "V", "B", "N", "M", Chr(188), Chr(192), Chr(220), "<", " "}
If System.Array.IndexOf(en, str) > -1 Then
e2f = fa.GetValue(System.Array.IndexOf(en, str))
End If
End If

Catch ex As Exception

End Try

End Function

Please after unzipping the source file, open " Register/register.vcproj " in the notepad and replace the path of samplebars.dll whth your own path

And at last , please visit of my website , if you want to support a global movement for peace : www.BlueAppleWorld.com

enjoy it ;)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

sohrabi


Member

Occupation: Web Developer
Location: United States United States

Other popular VB.NET articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 25 (Total in Forum: 25) (Refresh)FirstPrevNext
QuestionIE Toolbar for IE and Firefox PinmemberMember 35901421:52 4 Jul '08  
Generalabou opera browser Pinmemberbehdadb23:03 28 Apr '08  
QuestionError Compling Source PinmemberRobertSoelner3:51 23 Oct '07  
Questionwat could be the solution Pinmemberalvin05744:53 6 Jul '07  
GeneralRe: wat could be the solution Pinmemberlavino15:40 8 Mar '08  
QuestionIE7 Pinmembernitz22023:22 14 Jun '07  
Questiontoolbar not shown in IE7 Pinmemberying2516:35 3 Jun '07  
QuestionConnect to remote database Pinmemberying2523:17 23 May '07  
Questionnot able to see the textbox on the toolbar Pinmembersushmat1:20 8 Mar '07  
QuestionCould not load file or assembly Interop.SHDocVw PinmemberHeppie8:09 28 Dec '06  
QuestionDoes the Toolbar requires dot net framework? Pinmembershash12321:29 24 Oct '06  
AnswerRe: Does the Toolbar requires dot net framework? Pinmembermikeb695:36 9 Jan '07  
Generalnothing happens PinmemberMesser799:11 18 Oct '06  
GeneralRe: nothing happens Pinmemberguru77710:10 16 Mar '07  
QuestionThe dependency 'Interop.SHDocVw' could not be found. Pinmembershukku malik6:58 27 Sep '06  
QuestionRe: The dependency 'Interop.SHDocVw' could not be found. Pinmemberabnncte18:27 30 Nov '06  
AnswerRe: The dependency 'Interop.SHDocVw' could not be found. Pinmembergorcq16:35 26 Feb '07  
GeneralHow to install it from web site or installation package? PinmemberNhilesh B2:38 7 Sep '06  
GeneralDistribution Pinmemberpete11ryan12:22 16 Mar '06  
GeneralDistributing control Pinmemberpete11ryan12:21 16 Mar '06  
GeneralRe: Distributing control Pinmembersohrabi14:56 7 Jun '06  
GeneralRe: Distributing control PinmemberE.T.9:00 4 Aug '06  
GeneralC# Enumerations in VB.Net PinmemberSuper_C12:42 30 Jan '06  
GeneralRe: C# Enumerations in VB.Net Pinmembershrage1:22 3 Jul '07  
GeneralRe: C# Enumerations in VB.Net Pinmember.david5:18 27 Jun '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 22 May 2005
Editor:
Copyright 2005 by sohrabi
Everything else Copyright © CodeProject, 1999-2009
Web22 | Advertise on the Code Project