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

Web Control Library - Displaying Font Properties in a tree view form.

I'm creating a web control library and I would like to have a Font property
that expands out the different font elements (i.e. Color, Size, Bold, etc)
in the property window. I have no idea on how to do this and I'm having a
hard time finding any information on the web.. Any advice / solution / url
would be greatly appreciated.

Thanks in advance.
--
Jay Douglas
Fort Collins, CO


Nov 15 '05 #1
2 1509
Jay,

Depending on your environment, you could use Windows
Management Instrumentation (WMI) and access the
Win32_FontInfoAction object. There's a property
called "File" that contains the rough filename from the
Windows\Fonts directory and a "FontTitle" that you'd
think would contain a clean font name but actually just
seems blank at first glance (it could be an array or
something more complex, I'm just checking via
Scriptomatic, so it's hard to say).

Is this running on one machine? Do you want the fonts
available on whichever machine is running the app or
fonts available on a server?
Jerry Negrelli
Senior Software Engineer
Data Scientific Corporation
-----Original Message-----
I'm creating a web control library and I would like to have a Font propertythat expands out the different font elements (i.e. Color, Size, Bold, etc)in the property window. I have no idea on how to do this and I'm having ahard time finding any information on the web.. Any advice / solution / urlwould be greatly appreciated.

Thanks in advance.
--
Jay Douglas
Fort Collins, CO


.

Nov 15 '05 #2
As a followup, you could also call a file listing method
from the Directory class... but both WMI & file commands
are admittedly lame...
-----Original Message-----
Jay,

Depending on your environment, you could use Windows
Management Instrumentation (WMI) and access the
Win32_FontInfoAction object. There's a property
called "File" that contains the rough filename from the
Windows\Fonts directory and a "FontTitle" that you'd
think would contain a clean font name but actually just
seems blank at first glance (it could be an array or
something more complex, I'm just checking via
Scriptomatic, so it's hard to say).

Is this running on one machine? Do you want the fonts
available on whichever machine is running the app or
fonts available on a server?
Jerry Negrelli
Senior Software Engineer
Data Scientific Corporation
-----Original Message-----
I'm creating a web control library and I would like to

have a Font property
that expands out the different font elements (i.e.

Color, Size, Bold, etc)
in the property window. I have no idea on how to do

this and I'm having a
hard time finding any information on the web.. Any

advice / solution / url
would be greatly appreciated.

Thanks in advance.
--
Jay Douglas
Fort Collins, CO


.

.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: deko | last post by:
I'm hoping someone can sanity check my understanding of the Object Model for Forms/Controls. I'm having trouble drilling down into Control properties. First, I have a record set with the...
11
by: trinitypete | last post by:
Hi all, I have a user control that uses control literal to build a heading with a link, and a div containing links below. As the link heading is hit, I want to change the style of the div,...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
2
by: mharness | last post by:
Hello, I've tried a number of examples showing how to read the properties of a user control from an aspx file where the code is on the html view of the form but I can't figure out how to read...
0
by: Santosh | last post by:
Asp.Net tree view control font problem Dear all i am downloading MS tree view control . i want to change the font size and font name of the tree view control i am wrtitting code for it like ...
0
by: Santosh | last post by:
Dear all i am downloading MS tree view control . i want to change the font size and font name of the tree view control i am wrtitting code for it like if (!Page.IsPostBack) {...
4
by: Boris Yeltsin | last post by:
OK, on my Master Page I have a control: <a id="hypTabAccount" href="#" runat="server">Account</a> Now, in the code-behind (Root.master.vb) I can refer to it simply thus: ...
6
by: =?Utf-8?B?ZHNoZW1lc2g=?= | last post by:
Hello, I have a windows form with a TreeView control. When I first open the tree all nodes are colapsed. Then, I expand some of them and close the form. When I call Form.showDialog() once again...
2
by: Josh Valino | last post by:
Hi, I'd like to take the style properties from one control and apply them all to the properties of another control, where they relate. The situation is this: I have a TreeView control, and...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.