Click here to Skip to main content
15,913,334 members
Home / Discussions / C#
   

C#

 
AnswerRe: ComboBox AutoComplete with id value Pin
musefan19-May-09 6:42
musefan19-May-09 6:42 
GeneralRe: ComboBox AutoComplete with id value Pin
Noctris19-May-09 7:06
Noctris19-May-09 7:06 
AnswerRe: ComboBox AutoComplete with id value Pin
Noctris19-May-09 9:37
Noctris19-May-09 9:37 
QuestionToolstrip font combobox Pin
malcomhfc19-May-09 5:01
malcomhfc19-May-09 5:01 
AnswerRe: Toolstrip font combobox Pin
0x3c019-May-09 5:13
0x3c019-May-09 5:13 
GeneralRe: Toolstrip font combobox Pin
malcomhfc19-May-09 5:21
malcomhfc19-May-09 5:21 
GeneralRe: Toolstrip font combobox Pin
0x3c019-May-09 5:40
0x3c019-May-09 5:40 
GeneralRe: Toolstrip font combobox [modified] Pin
malcomhfc19-May-09 5:44
malcomhfc19-May-09 5:44 
Ok, thanks alot ill give it a shot Wink | ;)

edit: the word 'famlies' "foreach(FontFamily family in families)"

is underlined in red: word does not exist in current context.

Sorry again, ive added the using system statement etc, wont go away. Frown | :(

edit: before i start to annoy you maybe i presented this out wrong. I created a project just to try this out and see if i can get it working. Thats why i still have all the names like form1 :P

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Text;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            System.Drawing.Text.InstalledFontCollection fonts = new System.Drawing.Text.InstalledFontCollection();

            foreach (FontFamily family in families)
            {
                if (family.IsStyleAvailable(FontStyle.Regular))
                {
                    Font font = new Font(family, 12, FontStyle.Regular);
                }
            }
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}


modified on Tuesday, May 19, 2009 11:53 AM

GeneralRe: Toolstrip font combobox Pin
musefan19-May-09 6:16
musefan19-May-09 6:16 
GeneralRe: Toolstrip font combobox Pin
musefan19-May-09 6:36
musefan19-May-09 6:36 
GeneralRe: Toolstrip font combobox Pin
malcomhfc19-May-09 7:20
malcomhfc19-May-09 7:20 
GeneralRe: Toolstrip font combobox Pin
0x3c019-May-09 10:18
0x3c019-May-09 10:18 
GeneralRe: Toolstrip font combobox Pin
0x3c019-May-09 6:37
0x3c019-May-09 6:37 
AnswerRe: Toolstrip font combobox Pin
blackhattrick19-May-09 8:34
blackhattrick19-May-09 8:34 
GeneralRe: Toolstrip font combobox Pin
malcomhfc19-May-09 8:40
malcomhfc19-May-09 8:40 
QuestionClass Library / name space Question Pin
gmhanna19-May-09 4:48
gmhanna19-May-09 4:48 
AnswerRe: Class Library / name space Question Pin
OriginalGriff19-May-09 4:50
mveOriginalGriff19-May-09 4:50 
GeneralRe: Class Library / name space Question Pin
musefan19-May-09 4:54
musefan19-May-09 4:54 
GeneralRe: Class Library / name space Question Pin
OriginalGriff19-May-09 4:57
mveOriginalGriff19-May-09 4:57 
GeneralRe: Class Library / name space Question Pin
gmhanna19-May-09 4:56
gmhanna19-May-09 4:56 
AnswerRe: Class Library / name space Question Pin
musefan19-May-09 4:53
musefan19-May-09 4:53 
QuestionHex Strings to Integer Pin
gmhanna19-May-09 4:39
gmhanna19-May-09 4:39 
AnswerRe: Hex Strings to Integer Pin
Luc Pattyn19-May-09 4:47
sitebuilderLuc Pattyn19-May-09 4:47 
GeneralRe: Hex Strings to Integer Pin
musefan19-May-09 4:49
musefan19-May-09 4:49 
AnswerRe: Hex Strings to Integer Pin
musefan19-May-09 4:47
musefan19-May-09 4:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.