Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted
Make the combobox DropDownStyle a DropDownList so you can't enter text into it.

Nice Find. Wasn't aware of that. I remembered to do it for the richtextbox. :lol: I was unable to alter the text correctly using just a texbox. I still don't understand why the snaps don't display right. I even changed the color depth for the image list.

Posted

Yeah image lists can be funny like that. You could actually embed the images as resources and that would solve the problem.

Another thing to consider would be to use array's instead of a switch block because you can use the ComboBox's selected index to index into the array.

Another thing to consider is making a class where you could have all the properties of each frontend. So let's say you have a class called FrontEnd. You can have a Name, Picture, Text and Link properties. Then you have an array of FrontEnd objects.

Eg.

FrontEnd[] m_frontEnd = { new FrontEnd("GameEx", "GameEx.png", GameExText, "http://www.gameex.net"), ... };

Then when you recieve an item changed event in the combobox use the index of the selected item to say m_frontEnd[combobox1.SelectedIndex].Name etc.

Guest
This topic is now closed to further replies.
×
×
  • Create New...