I've been studying the Tricking out your applications code at
microsofts
website
http://msdn.microsoft.com/coding4fun...p/default.aspx
and its... tricked me out - In particular i'm having trouble with the
following:-
public TrickForm()
{
InitializeComponent();
backgroundComboBox.Items.Add(
new TaggedString("RoundedAAA",
Properties.Resources.RoundedFrame));
backgroundComboBox.Items.Add(
new TaggedString("Star",
Properties.Resources.StarFrame));
backgroundComboBox.Items.Add(
new TaggedString("Gear",
Properties.Resources.GearFrame));
}
private void backgroundComboBox_SelectedIndexChanged(object sender,
EventArgs e)
{
TaggedString val =
(TaggedString)backgroundComboBox.SelectedItem;
Bitmap bmp = (Bitmap)val.Tag;
SetFormBackgroundImage(bmp);
}
These two bits of code are really confusing me.
I can't find out what a taggedstring is anywhere in a simple to
understand
definition - i'm a hobbyist am trying hard to get to grips with the
heavy
concepts behind all this .net framework.
What is a taggedstring?
why is it proceeded with the word new?
what does properties.resources.roundedframe refer to?
where are the pictures stored? I can't find an image holder, how does
the
combo box know which image to associate with which index number?
if somebody could answer those questions, and then line by line
work through the above 10 or so lines of code and tell me EXACTLY in
english what's going on i'd really appreciate it.
Thanks,
Gary Moylan.