Click here to Skip to main content
15,920,602 members
Home / Discussions / C#
   

C#

 
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 
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 
Even with that error fixed the code you have posted wont do what you want.

so here are the fixes, the should work...

1. in you load event change the 'families' to 'fonts'
2. just before you foreach loop add the following line...
comboBox1.Items.Clear();

3. inside your foreach loop replace all code with this line only...
comboBox1.Items.Add(family.Name);


this should then populate you combo box with all the fonts

4. in your selected index changed event add the following code to alter you textbox font...
textbox1.Font = new Font(comboBox1.Text, 10);//where 10 is the size of the font


Life goes very fast. Tomorrow, today is already yesterday.

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 
AnswerRe: Hex Strings to Integer Pin
gmhanna19-May-09 4:59
gmhanna19-May-09 4:59 
GeneralRe: Hex Strings to Integer Pin
musefan19-May-09 5:00
musefan19-May-09 5:00 

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.