Click here to Skip to main content
Licence 
First Posted 22 May 2005
Views 112,379
Bookmarked 43 times

make a VB.Net toolbar for Internet explorer

By | 22 May 2005 | Article
this source code help you to make a toolbar with Band Objects in VB.net

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<BR>Imports System.ComponentModel<BR>Imports 
System.Windows.Forms<BR>Imports BandObjectLib<BR>Imports 
System.Runtime.InteropServices

<Guid("AE07101B-46D4-4a98-AF68-0333EA26E113"), 
_<BR>BandObjectAttribute("Shokouh Bar", BandObjectStyle.Horizontal Or 
BandObjectStyle.ExplorerToolbar Or BandObjectStyle.TaskbarToolBar, 
HelpText:="Shows bar that says hello.")> _<BR>Public Class 
SampleBars<BR>    Inherits BandObject</CODE><P></P>
<P>this application make a Persian text box for an online dictionary too 
,</P><CODE lang=vbnet>
<P>    Public Function e2f(ByVal key As Integer, ByVal shift As 
Boolean) As String<BR>        Try</P>
<P><BR>            <BR>            
Dim str As 
String<BR>            str 
= 
Chr(key)<BR>            </P>
<P>            If shift = 
False 
Then<BR>                
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;", " 
"}<BR>                
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), 
"<", " 
"}<BR>                
If System.Array.IndexOf(en, str) > -1 
Then<BR>                    
e2f = fa.GetValue(System.Array.IndexOf(en, 
str))<BR>                
End If<BR>            
ElseIf shift = True 
Then<BR>                
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;", " 
"}<BR>                
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), 
"<", " 
"}<BR>                
If System.Array.IndexOf(en, str) > -1 
Then<BR>                    
e2f = fa.GetValue(System.Array.IndexOf(en, 
str))<BR>                
End If<BR>            End 
If</P>
<P>        Catch ex As Exception</P>
<P>        End Try</P>
<P>    End Function</P>

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

Web Developer

United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 5 PinmemberHeaven20206:53 3 Nov '10  
GeneralRe: My vote of 5 Pinmembermysteryguy10120:35 18 May '11  
GeneralIts Not working please correct the source......... Pinmemberstattri200122:37 2 Dec '09  
QuestionIE Toolbar for IE and Firefox PinmemberMember 35901420:52 4 Jul '08  
Generalabou opera browser Pinmemberbehdadb22:03 28 Apr '08  
QuestionError Compling Source PinmemberRobertSoelner2:51 23 Oct '07  
Questionwat could be the solution Pinmemberalvin05743:53 6 Jul '07  
GeneralRe: wat could be the solution Pinmemberlavino14:40 8 Mar '08  
QuestionIE7 Pinmembernitz22022:22 14 Jun '07  
Questiontoolbar not shown in IE7 Pinmemberying2515:35 3 Jun '07  
AnswerRe: toolbar not working ...... Pinmemberstattri200122:43 2 Dec '09  
QuestionConnect to remote database Pinmemberying2522:17 23 May '07  
Questionnot able to see the textbox on the toolbar Pinmembersushmat0:20 8 Mar '07  
QuestionCould not load file or assembly Interop.SHDocVw PinmemberHeppie7:09 28 Dec '06  
QuestionDoes the Toolbar requires dot net framework? Pinmembershash12320:29 24 Oct '06  
AnswerRe: Does the Toolbar requires dot net framework? Pinmembermikeb694:36 9 Jan '07  
how can a .net code work without the framework ?
 
mikeb69
Sniff | :^)
Generalnothing happens PinmemberMesser798:11 18 Oct '06  
GeneralRe: nothing happens Pinmemberguru7779:10 16 Mar '07  
QuestionThe dependency 'Interop.SHDocVw' could not be found. Pinmembershukku malik5:58 27 Sep '06  
QuestionRe: The dependency 'Interop.SHDocVw' could not be found. Pinmemberabnncte17:27 30 Nov '06  
AnswerRe: The dependency 'Interop.SHDocVw' could not be found. Pinmembergorcq15:35 26 Feb '07  
QuestionHow to install it from web site or installation package? PinmemberNhilesh B1:38 7 Sep '06  
GeneralDistribution Pinmemberpete11ryan11:22 16 Mar '06  
GeneralDistributing control Pinmemberpete11ryan11:21 16 Mar '06  
GeneralRe: Distributing control Pinmembersohrabi13:56 7 Jun '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120529.1 | Last Updated 22 May 2005
Article Copyright 2005 by sohrabi
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid