473,397 Members | 2,116 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,397 software developers and data experts.

Converting string to font object (VB.net) ?

VB.NET

Via the FontDialog I have retrieved a font. After saving the font (in an XML
document) and retrieving it again, I have a string in the following
"format";

[Font: Name=Arial, Size=9, Units=3, GdiCharSet=0, GdiVerticalFont=False]

How can I convert this string (back) to a font object?
So that I can assign this to (for example) to: label1.Font = ....

Thanks! Steve
Nov 20 '05 #1
1 8886
Hi,

Maybe this will help
http://www.codeproject.com/vb/net/us...asp?print=true

Ken
-------------------
"Steven" <st****@dds.nl> wrote in message
news:eo**************@TK2MSFTNGP11.phx.gbl...
VB.NET

Via the FontDialog I have retrieved a font. After saving the font (in an
XML
document) and retrieving it again, I have a string in the following
"format";

[Font: Name=Arial, Size=9, Units=3, GdiCharSet=0, GdiVerticalFont=False]

How can I convert this string (back) to a font object?
So that I can assign this to (for example) to: label1.Font = ....

Thanks! Steve

Nov 20 '05 #2

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

Similar topics

0
by: Marion | last post by:
Okay, I just posted a bash of the removal of the Printer Collection from ..Net, now I am taking aim at the Font Object. What were you thinking when you made the Font object read only? That has to...
3
by: j.a. harriman | last post by:
Hi, On MSDN I know there is a JScript example (Upgrading Visual C++ Projects to Visual Studio .NET in Batch Mode) to upgrade VS6 C++ projects to .NET solutions. It converts the project files...
1
by: Philip K | last post by:
I was trying to use Soap serialisation to save some systems settings how ever it fails if the settings contain a Font object, works fine if the Font object is not in the object being serialised. ...
5
by: amitbadgi | last post by:
Hi guys, I am getting the following error in teh insert statement , I am converting this asp application to asp.net, here is teh error, Exception Details:...
5
by: Rajesh Kr Shukla | last post by:
Hi There, Can any one suggest me how to convert the string into object in VB.net. If you are familier with javascript you can use. var i = 1 eval("textbox" + i).value = "Hello World" What is...
3
by: David Pendleton | last post by:
Hello all. Does anyone know how to persist or serialize a Font object? Possible? Thanks.
3
by: excelleinc.com | last post by:
Hi, I want to have a sub that takes string as argument and then opens a form that has that string as a class name. Say: Class users Inherits System.Windows.Forms.Form 'display form content
16
by: manmit.walia | last post by:
Hello All, I have tried multiple online tools to convert an VB6 (bas) file to VB.NET file and no luck. I was hoping that someone could help me covert this. I am new to the .NET world and still...
1
by: madumm | last post by:
Hi all I really need a solution for the following:: ------------------------------------------------------------------------------------- Say i have a font object called 'myFont' as shown below;...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.