Click here to Skip to main content
15,884,629 members
Articles / Operating Systems / Windows
Article

Enabling Urdu in Visual Basic 6.0

Rate me:
Please Sign up or sign in to vote.
3.76/5 (6 votes)
23 Aug 2006CPOL1 min read 43.1K   12   4
This will help beginners to enable Urdu in VB 6.

Introduction

My name is Ubaid-ur-Rehman Baig. I am a student of Sheikh Zayed Islamic Centre, University Of Karachi.This article helps beginners to enable Urdu support in Visual Basic 6.0. If you have installed Urdu support on your computer, create a database by entering Urdu data in it e.g. this time enter the data such as "Noman" etc in URDU e.g. "نعمان" and "ثابت" etc. You must have a Unicode Font installed in your computer. If not so, you may download it from the Internet. Normally "Times New Roman" and "Tahoma" have the ability to show Urdu. You should have Office 2000 or later version of Microsoft Access for Urdu writing.

Note: For further help on database creation please read my article on database creation from this website.

At this point Open Microsoft Visual Basic 6.0 and do the following steps.

<shapetype id="_x0000_t75" coordsize="21600,21600" o:preferrelative="t" o:spt="75" filled="f" stroked="f" path=" m@4@5 l@4@11@9@11@9@5 xe"><stroke joinstyle="miter"><formulas><f eqn="if lineDrawn pixelLineWidth 0 "><f eqn="sum @0 1 0 "><f eqn="sum 0 0 @1 "><f eqn="prod @2 1 2 "><f eqn="prod @3 21600 pixelWidth "><f eqn="prod @3 21600 pixelHeight "><f eqn="sum @0 0 1 "><f eqn="prod @6 1 2 "><f eqn="prod @7 21600 pixelWidth "><f eqn="sum @8 21600 0 "><f eqn="prod @7 21600 pixelHeight "><f eqn="sum @10 21600 0 "><path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"><lock aspectratio="t" v:ext="edit"><shape id="_x0000_s1026" style="MARGIN-TOP: 31.4pt; Z-INDEX: 1; LEFT: 0px; MARGIN-LEFT: 45pt; WIDTH: 307.5pt; POSITION: absolute; HEIGHT: 271.5pt; TEXT-ALIGN: left" coordsize="21600,21600" type="#_x0000_t75">

<shapetype id="_x0000_t75" coordsize="21600,21600" o:preferrelative="t" o:spt="75" filled="f" stroked="f" path="m@4@5l@4@11@9@11@9@5xe"><stroke joinstyle="miter"><formulas><f eqn="if lineDrawn pixelLineWidth 0"><f eqn="sum @0 1 0"><f eqn="sum 0 0 @1"><f eqn="prod @2 1 2"><f eqn="prod @3 21600 pixelWidth"><f eqn="prod @3 21600 pixelHeight"><f eqn="sum @0 0 1"><f eqn="prod @6 1 2"><f eqn="prod @7 21600 pixelWidth"><f eqn="sum @8 21600 0"><f eqn="prod @7 21600 pixelHeight"><f eqn="sum @10 21600 0"><path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"><lock aspectratio="t" v:ext="edit"><shape id="_x0000_s1026" style="MARGIN-TOP: 31.4pt; Z-INDEX: 1; MARGIN-LEFT: 45pt; WIDTH: 307.5pt; POSITION: absolute; HEIGHT: 271.5pt" type="#_x0000_t75"><imagedata src="file:///F:\DOCUME~1\Home\LOCALS~1\Temp\msohtml1\01\clip_image001.png">From Project Components select Microsoft Forms 2.0 Object Library. Click OK.

Sample screenshot

Make sure that you have new controls in ToolBox in the lower left corner.

<shape id="_x0000_s1027" style="MARGIN-TOP: 12.05pt; Z-INDEX: 2; MARGIN-LEFT: 139.5pt; WIDTH: 37.5pt; POSITION: absolute; HEIGHT: 186.75pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata src="/KB/work/UrduVB6/files/image003.png">

Sample screenshot

Now insert the "Microsoft ADODC" and link it to the Urdu database that you have created by the same previous process. Now put four textboxes on your form like this. You must have a Unicode Font installed in your computer. If not so, you may download it from the internet. Normally "Times New Roman" and "Tahoma" have the ability to show Urdu. Change the "Font" property of each textbox to either of these Fonts.

<shape id="_x0000_s1028" style="MARGIN-TOP: 11.3pt; Z-INDEX: 3; MARGIN-LEFT: 127.5pt; WIDTH: 159pt; POSITION: absolute; HEIGHT: 138.75pt" coordsize="21600,21600" type="#_x0000_t75"><imagedata src="/KB/work/UrduVB6/files/image005.png">

Sample screenshot

Set the "Data Source" property of each text box to "ADODC1" which you already know. After this, change the "Data Field" property of each textbox one by one. Save your work and run the program. It should look like this:

Sample screenshot

<shape id="_x0000_s1029" style="MARGIN-TOP: 22.2pt; Z-INDEX: 4; LEFT: 0px; MARGIN-LEFT: 131.25pt; WIDTH: 162pt; POSITION: absolute; HEIGHT: 137.25pt; TEXT-ALIGN: left" coordsize="21600,21600" type="#_x0000_t75"><imagedata src="/KB/work/UrduVB6/files/image007.png">

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Softech Worldwide LLC
Pakistan Pakistan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
PraiseThanks Pin
aanbarasan28-Nov-15 14:41
aanbarasan28-Nov-15 14:41 
QuestionRequest Pin
QASKU20-Jun-11 2:08
QASKU20-Jun-11 2:08 
QuestionThanks Pin
QASKU20-Jun-11 2:03
QASKU20-Jun-11 2:03 
GeneralGreat Article Pin
Mamoon E Seth24-Aug-06 2:51
Mamoon E Seth24-Aug-06 2:51 

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

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