TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dalton Nelson
NA
9
0
DropDown, Theme/Color Changer
Oct 14 2009 6:48 PM
Okay... First of all how do I make my ComboBox have a Dropdown, or my TextBox? To add these choices Choose Theme... -Default -Green -Red -Blue -Black -Silver/White Secondly, I am trying to use this code to change them... But there are errors... Here is the code. private void textBoxDropDown1_TextChanged(object sender, EventArgs e) { switch (textBoxDropDown1.SelectedText) { case "default": { ChangeTheme(menuStrip1, Image.FromFile("http://moddersworld.com/images/test5.png"), ImageLayout.Stretch, Color.White); ChangeTheme(BackgroundImage, Image.FromFile("http://moddersworld.com/images/bgom.png"), ImageLayout.Stretch, Color.White); } break; case "green": { ChangeTheme(menuStrip1, Image.FromFile("http://moddersworld.com/images/test4.png"), ImageLayout.Stretch, Color.LimeGreen); ChangeTheme(BackgroundImage, Image.FromFile("http://moddersworld.com/images/grn1.png"), ImageLayout.Stretch, Color.White); } break; case "red": { ChangeTheme(menuStrip1, Image.FromFile("http://moddersworld.com/images/test9.png"), ImageLayout.Stretch, Color.White); ChangeTheme(BackgroundImage, Image.FromFile("http://moddersworld.com/images/red7.png"), ImageLayout.Stretch, Color.White); } break; case "blue": { ChangeTheme(menuStrip1, Image.FromFile("http://moddersworld.com/images/test0.png"), ImageLayout.Stretch, Color.White); ChangeTheme(BackgroundImage, Image.FromFile("http://moddersworld.com/images/blue0.png"), ImageLayout.Stretch, Color.White); } break; case "silver/white": { ChangeTheme(menuStrip1, Image.FromFile("http://moddersworld.com/images/test7.png"), ImageLayout.Stretch, Color.Black); ChangeTheme(BackgroundImage, Image.FromFile("http://moddersworld.com/images/whitesliver.png"), ImageLayout.Stretch, Color.Black); } break; case "black": { ChangeTheme(menuStrip1, Image.FromFile("http://moddersworld.com/images/test4.png"), ImageLayout.Stretch, Color.White); ChangeTheme(BackgroundImage, Image.FromFile("http://moddersworld.com/images/black.png"), ImageLayout.Stretch, Color.White); } break;
Reply
Answers (
1
)
How do i write code to handle exceptions in the DAL if i use the designer to create DAL?
static inheritance