Skip to main content
Email Password   helpLost your password?

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 ;)

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
QuestionIE Toolbar for IE and Firefox Pin
Member 3590142
1:52 4 Jul '08  
Generalabou opera browser Pin
behdadb
23:03 28 Apr '08  
QuestionError Compling Source Pin
RobertSoelner
3:51 23 Oct '07  
Questionwat could be the solution Pin
alvin0574
4:53 6 Jul '07  
GeneralRe: wat could be the solution Pin
lavino
15:40 8 Mar '08  
QuestionIE7 Pin
nitz2202
3:22 14 Jun '07  
Questiontoolbar not shown in IE7 Pin
ying25
16:35 3 Jun '07  
QuestionConnect to remote database Pin
ying25
23:17 23 May '07  
Questionnot able to see the textbox on the toolbar Pin
sushmat
1:20 8 Mar '07  
QuestionCould not load file or assembly Interop.SHDocVw Pin
Heppie
8:09 28 Dec '06  
QuestionDoes the Toolbar requires dot net framework? Pin
shash123
21:29 24 Oct '06  
AnswerRe: Does the Toolbar requires dot net framework? Pin
mikeb69
5:36 9 Jan '07  
Generalnothing happens Pin
Messer79
9:11 18 Oct '06  
GeneralRe: nothing happens Pin
guru777
10:10 16 Mar '07  
QuestionThe dependency 'Interop.SHDocVw' could not be found. Pin
shukku malik
6:58 27 Sep '06  
QuestionRe: The dependency 'Interop.SHDocVw' could not be found. Pin
abnncte
18:27 30 Nov '06  
AnswerRe: The dependency 'Interop.SHDocVw' could not be found. Pin
gorcq
16:35 26 Feb '07  
GeneralHow to install it from web site or installation package? Pin
Nhilesh B
2:38 7 Sep '06  
GeneralDistribution Pin
pete11ryan
12:22 16 Mar '06  
GeneralDistributing control Pin
pete11ryan
12:21 16 Mar '06  
GeneralRe: Distributing control Pin
sohrabi
14:56 7 Jun '06  
GeneralRe: Distributing control Pin
E.T.
9:00 4 Aug '06  
GeneralC# Enumerations in VB.Net Pin
Super_C
12:42 30 Jan '06  
GeneralRe: C# Enumerations in VB.Net Pin
shrage
1:22 3 Jul '07  
GeneralRe: C# Enumerations in VB.Net Pin
.david
5:18 27 Jun '08  


Last Updated 22 May 2005 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009