Marook-Online
* 06.Feb.2012, 15:02 UTC+1
Welcome, Guest. Please login or register.
Username:
Password:

News: Back again Wink
Main Menu
  Navigation
   Downloads
     Tools
     Music Discs
     SMF Mods
     Trainer & Patches
     EgoShare Uploader
   Guestbook
   NoPaste
   User Map
   Gallery
  
   Malware Scan
   Hacker Blacklist
   Find Abusemail
Top Downloads
Support Me !
Help me by donating a small amount!



Advanced search

Google


Pages: [1]   Go Down
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read
06-Dec-2007 01:16
Marook
Administrator
*****
Offline Offline

Joined: 01-Jan-2005
Posts: 224


Quote
Error using fonts in Visual Studio.NET IDE
Only TrueType fonts are supported and this is not a TrueType font.


The above problem occurs when attempting to select some barcode fonts for any Windows Forms control using the control properties window in the Visual Studio.NET IDE.

Microsoft is aware of the font problem in Visual Studio.NET. Below are two suggested solutions for this issue.

Solution 1:
After selecting the font in the properties window of the VS.NET IDE, the error message "Only TrueType fonts are supported and this is not a TrueType font" will be reported. Click OK, and then close VS.NET. Re-open VS.NET, followed by the project; select the font in the properties window, the error will no longer be generated.

Solution 2:
In the Visual Studio.NET application, reference and apply the fonts through the code window of the application. The following example assigns a font on a label in a form during the Form_Load event. 

Code
GeSHi (vbnet):
  1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.     Label1.Font = New Font("code128b", 14, FontStyle.Regular)
  3. End Sub
Created by GeSHI 1.0.7.20
Logged
 

Pages: [1]   Go Up
Jump to:  

Theme by webtechnica.net

MHD v2.1 © 2oo8 by Marook
32116 hacking attempts defended!