473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I need help with fonts in vb6

I want to create an application which at run time can change font and this changed font must apply to all the controls in the form
Aug 24 '06 #1
5 2932
Do a Combo Box, not positive about the code for it, but try something simple first like, on a button, do an onlick event to do this:

Command1.Font = "MS Comic Sans"

that should change the font to Comic Sans
Aug 24 '06 #2
he main problem with this is that if i change the fontsize also the caption will either be too large to fit on the control or it will be too small i want the things not to get haphazard the form and controls on them should also resize accordingly
Aug 24 '06 #3
Im not sure about that. When you change the fonts, you'd also have to have some code that would alter the width and height of all the items, which i have no idea to lol unfortuneatly, not every object has the auto-resize feature, but that be risky on the form layout.

sorry i cant help any more
Aug 24 '06 #4
Hemant Pathak
92 Expert
Hi Shalabh Anand

if do u want to change the caption & font size of any Label Control then set the Autosize=true it is a Label Control property.
if u want to getting the all true font in run time then try this code
Aug 24 '06 #5
Hi Shalabh Anand

if do u want to change the caption & font size of any Label Control then set the Autosize=true it is a Label Control property.
if u want to getting the all true font in run time then try this code
trouble with that is it is too risky that the layout would be off with the form. What you could do (which sounds horrible, and might make the .exe massive) is have LOADS of forms, 1 for each font style you wish to do. Have a combo box on each form, and when the box is changed, it changes to the form with the appropriate font. Just an idea, but i wouldnt do it. I'd make them stick to one font if thats what needed to be done
Aug 24 '06 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Marc Christiansen | last post by:
Hi! After some installation problems related to PyGUI (well, indirectly -- I had to install new versions of: freetype, fontconfig, xft2 (from fcpackage.2_1.tar.gz, because the latest xft2 won't...
5
by: McKirahan | last post by:
If anyone's interested ... Below is a script that displays a character string (numbers and letters) in every font that is on my PC. I extracted the list of fonts from an export of the Windows...
9
by: Jason | last post by:
Hi, I am working on a project that creates Banner images programmatically. I have the application working but need to use the Hevetica Neue font but it does not appear in the font list. My...
3
by: Mel | last post by:
is it possible to get a list of available fonts from client machine running a browser ?
7
by: Shyguy | last post by:
I have an option group with about 30 options. I would like to have the Option Labels get their text from a table. Is this possible, and if so how? Also, is it possible to embad a font into a...
7
by: Scott | last post by:
Sorry if this is a dumb question - bit of a newbie to Access: Just getting to grips with OfficeXP Developer, the intention being to be able to deploy a simple Access application to various...
4
by: Sam | last post by:
Is there a way to display Asian fonts in Access 97? If not, how about subsequent versions? One thought is I was able to display Asian fonts in Visual Basic using a browser control, which in turn...
12
by: ctclibby | last post by:
Hi all Have a customer that wants a specific font included in her web page design; Comic Sans MS. This is one of the MS core fonts. The problem I have is that some of the *nix browsers do NOT...
2
by: Gary | last post by:
1. I've installed a bunch of fonts in main application, which is in native C++ code using AddFontResourceEx 2. A C# application is launched from this main application, but failed to enumerate...
8
by: andreas | last post by:
How can I choose some fonts in programs so that they are always avalable for the program at other computers, can I put them in some resources? Thanks for any response
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.