Solved

using right to left font in VB5

Posted on 1998-11-25
7
188 Views
Last Modified: 2013-12-02
Hi,
   I need this quickly and in detail:
  1. How can i change the text box object properties of VB so that it can entertain a font which works from right to left like in Arabic.
  2. I have come to know that i will have to create a selection of ocx objects for use in VB. So, how is an ocx created?
  3. Is  there any way i could do it without the creation of     ocx objects.  i.e. within the VB environment. IF so then       how.
 Once again please do give me details.
0
Comment
Question by:khurshid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 4

Expert Comment

by:idcanada
ID: 1446730

Ok.

I would be able and would like to solve your question but I am confused...
Could you please post some more information on what it is that you want to do.

Details...

0
 

Author Comment

by:khurshid
ID: 1446731
hi,
   ok, i think point 2 of my question may have confused u. I want the text box of VB to be able to use font which works from right to left like in Arabic or Urdu. This way i can create a database which can be stored in the Urdu language. How can i make my font to work from from right to left. Can it be done within the VB environment? If not then do i need to create an ocx for it to work? If so then how do i create the ocx ( include format)? Please give details. I need the easiest way to make this work if possible.
   thanks.
0
 

Author Comment

by:khurshid
ID: 1446732
Adjusted points to 210
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

Author Comment

by:khurshid
ID: 1446733
Its been a long time and i havent had any response . Please Respond.
0
 

Author Comment

by:khurshid
ID: 1446734
its been over a month, if u cant answer than let me know so that i could ask someone  else!
0
 
LVL 1

Accepted Solution

by:
bear454 earned 210 total points
ID: 1446735
The right to left property of objects in VB is determined by the OS, and the the application version.  In order to use a reversed font, you have to be running your system in a language that uses a reversed font.  The property is, as you have noticed, read-only because it depends on the version of windows.

There is a cheat, assuming that the characters in the font you are using are facing the correct direction, you can reorder the string input in the inverse order, so it appears to be reversed:

Dim OldString as string 'The original input
Dim NewString as string 'The reversed string

Do Until OldString.length = 0
    NewString = NewString & Right(OldString,1)
Loop
0
 

Expert Comment

by:EdJ
ID: 3155145
Little bit Confused ! Ok Here is my Suggestion..

YOU WANT IT IN DESIGN TIME ?

set the Right to Left Property of the text box property to True

Set the font property to any Arabic fonts, like "traditional Arabic"

Hope it will help you !

WANT IT IN RUNTIME ?

E-mail Me

Edjohnson@parsmail.com

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question