Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using Special fonts in VB

Posted on 1998-08-04
8
Medium Priority
?
223 Views
Last Modified: 2013-12-02
Can the VBasic text box object support a font that works from ritght to left like in Arabic ?

1.If so how can I  include such a font in the VBasic? What would I have to do to make such a font work in VBasic?

2. What about contextual analysis of the font? Will that be supported? If not how do I get THAT to work in VBasic?
0
Comment
Question by:khurshid
8 Comments
 

Author Comment

by:khurshid
ID: 1467824
Edited text of question
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1467825
You will need to have the font installed on your computer.  
Set the RightToLeft property = True

I can't test this (so I'm leaving it as a comment) but that's pretty much the gist of it.
0
 
LVL 1

Expert Comment

by:KEWL
ID: 1467826
I think if you set the width to a negative value it reverses the text. I havnt tried this but I read it somewhere
0
Industry Leaders: 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!

 
LVL 1

Accepted Solution

by:
jf26028 earned 100 total points
ID: 1467827
You can put the font into a resource file and use it that way.  I think you can do this without installing the font.
0
 

Author Comment

by:khurshid
ID: 1467828
To jf26028,
      What exactly do you mean by a resource file? Explain.
     
0
 

Author Comment

by:khurshid
ID: 1467829
To jf26028,
      What exactly do you mean by a resource file? Explain.

To KEWL,
      It does not accept a negative value and returns an error message as soon as I press Enter after giving it a -ive value..
To clifABB,
    I'm using VB 4.0, if you are referring to setting the Right to Left  property of the textbox object, then it does not exit in the properties menu for the textbox in VB 4.0      
0
 
LVL 1

Expert Comment

by:jf26028
ID: 1467830
A resource file is a file that can contain every resource that your program uses, such as bitmaps, avis, strings, and, I think, fonts.  If you store the font in the resource file, you can refrence it instead of just the installed fonts on the machine.  Look up resource in the help file, and also in the owners area at the microsoft site, there is a resource editot upgrade that might help you.
0
 

Expert Comment

by:EdJ
ID: 3155157
What you wanted is to Shift the Direction From left To Rigth to Right To left

In VB5 you can set the Right To Left property to True

Also Set the font to Arabic so the text will be readable

Hope this will help u !

Want it in Runtime ?

Why i'm not getting points ? Also 'm losing some watching this answers ....


E-mail Me

edjohnson@parsmail.com

0

Featured Post

Technology Partners: 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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

916 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