تبلیغات
سی شارپ کده - با این کد میتوانید لیست باکس را پر از رنگ های سیستمی کنید

سی شارپ کده

private void Form1_Load(object sender, EventArgs e)
{
string[] colorNames;
colorNames = System.Enum.GetNames(typeof(KnownColor));
listBox1.Items.AddRange(colorNames);
}
private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
{
KnownColor selectedColor;
selectedColor = (KnownColor)System.Enum.Parse(typeof(KnownColor), listBox1.Text);
this.BackColor = System.Drawing.Color.FromKnownColor(selectedColor);
}
}

نظرات() 
Domenic
جمعه 17 آذر 1396 02:44 ق.ظ
It's not my first time to pay a quick visit this web site, i am visiting this web site dailly
and take pleasant facts from here every day.
Why do they call it the Achilles heel?
سه شنبه 10 مرداد 1396 08:42 ق.ظ
Good info. Lucky me I found your blog by chance
(stumbleupon). I've saved as a favorite for later!
manicure
شنبه 2 اردیبهشت 1396 11:06 ب.ظ
Everyone loves it when people come together and share opinions.

Great blog, stick with it!
BHW
جمعه 25 فروردین 1396 05:41 ب.ظ
Hi, I do think this is an excellent blog. I stumbledupon it ;) I'm
going to come back yet again since I saved as a favorite it.
Money and freedom is the greatest way to change, may you be rich and continue
to guide other people.
BHW
شنبه 12 فروردین 1396 10:34 ق.ظ
Aw, this was a really nice post. Taking a few minutes
and actual effort to create a superb article… but what
can I say… I hesitate a lot and don't seem to get nearly anything
done.
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر

آمار وبلاگ

  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد نویسندگان :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :