Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bad luck

1 view
Skip to first unread message

m.wolfe

unread,
May 12, 2009, 12:13:38 PM5/12/09
to

From: "m.wolfe" <m.w...@embarqmail.com>
Subject: Continuous bad luck
Date: Tuesday, May 12, 2009 12:08 PM

Y'all

Seems like I can't make any of the examples work. Here's one I've tweaked.
The listbox is actually much larger than need be. However, clicking, keying
and slamming my keyboard haven't resulted in any text on the listbox. Your
help appreciated.

m.wolfe

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


private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
//listBox1.Width = 200;
//listBox1.Location = new Point( 40, 120 );
foreach (FontFamily oneFontFamily in FontFamily.Families)
{
listBox1.Items.Add( oneFontFamily.Name );
}
}
}
}

I realize authors many times insert logic errors into their code to make you
think. However it looks to me, after tooling with them, that the program
should run. I have used small examples, like the one given here. I have
installed .Net 3.5 SP1 and use VS 2008. This particular example is copied
from the local help system and tooled a bit.

0 new messages