Solved

using right to left font in VB5

Posted on 1998-11-25
7
174 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to create a duplicate finder Application 9 113
VBA error replacing data 6 37
make top menus bigger font 3 54
How to make an ADE file by code? 11 79
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now