473,396 Members | 1,713 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,396 software developers and data experts.

Font selection

46
Hi all
I have a two requirement in access.Is it possible to change the font programmatically .If so can you give me the code for that.To be clear , now if i want to change the font , i go to design view and then change,is there any way to change at run time rather than design.

Thanks in advance
Feb 22 '08 #1
3 2372
Stewart Ross
2,545 Expert Mod 2GB
Hi. It would be helpful to know what type of item is involved. Assuming it is a control on a form or report, the syntax for changing the font of a control from code within the form or report's code module is just

me.[name of control].fontname = "Name of Font"

Example:

Me.ctrlSummary.Fontname = "Times New Roman"

-Stewart
Feb 22 '08 #2
ramdil
46
Hi
Thanks for the reply.Actually i was looking some thing like datepicker type functionality ..For eg in run time if i am pressing a button font selector should come.Is it possible .I have a done spell checker like this on click of button,spell cheker will be visible and then i can do the operation at run time,so same thing is font select available.




Hi. It would be helpful to know what type of item is involved. Assuming it is a control on a form or report, the syntax for changing the font of a control from code within the form or report's code module is just

me.[name of control].fontname = "Name of Font"

Example:

Me.ctrlSummary.Fontname = "Times New Roman"

-Stewart
Feb 25 '08 #3
Stewart Ross
2,545 Expert Mod 2GB
...Actually i was looking some thing like datepicker type functionality ..For eg in run time if i am pressing a button font selector should come...
Hi again. I'm not sure what value there would be in having the font dialogue available to users at run-time - it must be rare indeed for there to be a need to do this in an Access application! To the best of my knowledge the font picker dialogue is not available at runtime as a native Access capability. I would suggest that, if this is functionality that you really, really need, you look at calling the standard Windows API fonts dialogue, but I have not investigated this further at present.

Regards

Stewart
Feb 25 '08 #4

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

Similar topics

3
by: Jim Puls | last post by:
I'm writing a Windows Forms application in C# which will run generally in a Western environment; e.g., EN-US. I need to access a unicode font on the user's system which is capable of displaying...
4
by: Michel Joly de Lotbiniere | last post by:
I hope this is the correct newsgroup for this subject. The other day I came across a site www.safesquid.com that specified font-family:Terminal font-size:9pt in the inline css for command-line...
2
by: MLH | last post by:
This is NOT of paramount importance. I'm sure there are others whose questions are mission critical. Mine is not. I have always wanted a report that looked like this... Here is some sample...
2
by: Michael A. Covington | last post by:
When you change the Font property of a RichTextBox, does it change the font of all the contents, or only the text subsequently added, or only the selection, or what?
2
by: Hariharan S | last post by:
Hi Guys, Have an issue with the Font object. I have a text box in which I can enter text and I have included a small button which upon selection, should enable me to change the newly entered...
1
by: | last post by:
Is there any way i can disable Font Style and Size Section that comes on Font Dialog Box.
2
by: Stuart Norris | last post by:
Dear Group, I am new to c# and windows form designer - coming from a Motif background. I am attempting to develop an application for a touch screen and I need to have a menu system with a...
4
by: H-S | last post by:
Please help. This is a real puzzler! Originally posted on microsoft.public.dotnet.framework.windowsforms but no answer found! I have a read-only textBox which shows the results of a selection...
3
by: =?Utf-8?B?VG90eSBTYW50YW5h?= | last post by:
I am using textboxes, buttons labels and drop down lists on a web page, but i noticed that textboxes and buttons font size doesn't change when i change the font size in IE ( from IE menu:...
1
by: hmkaddoura | last post by:
Hi All, Am trying to change the MS word font in my vb.net application by using the following code Dim sizo As Single = 14 ......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.