
May 19th, 2002, 10:43 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
<i><b>Originally posted by : Brian C (bchan3@yahoo.com)</b></i><br />This snippit came from "Automate Text Graphics Creation", it will return a list of the fonts on the system. You can bind this to a dropdown.<br /><br />http://www.fawcette.com/archives/premier/mgznarch/vbpj/2001/09sep01/an0109/an0109.asp<br /><br /><br />Private Function getFonts() As _<br /> ArrayList<br /> Dim fontFamilies As Array<br /> Dim arr As ArrayList = New _<br /> ArrayList()<br /> Dim aFamily As _<br /> System.Drawing.FontFamily<br /> Dim families As _<br /> InstalledFontCollection = New _<br /> System.Drawing.Text. _<br /> InstalledFontCollection()<br /><br /> fontfamilies = families.Families<br /> For Each aFamily In fontFamilies<br /> arr.Add(aFamily.GetName(0))<br /> Next<br /> Return arr<br />End Function<br /><br /><br />------------<br />Margo at 5/19/2002 6:36:12 AM<br /><br />Hi to all!<br /><br />I try to populate Drop-Down List with Font Name that there are in Windows 2000 and its sizes.<br /><br />May be anyone already have opinion how to do this in .NET?<br /><br />Thanks<br />
|