Solved

using right to left font in VB5

Posted on 1998-11-25
7
170 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
Comment Utility

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
Comment Utility
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
Comment Utility
Adjusted points to 210
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

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

Author Comment

by:khurshid
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now