Description: Introduction
I have always believed that the best programmers are lazy programmers in the sense that they hate repetitious coding and want to find ways to automate and reduce the amount of code that must be produced. One area where this comes into practice is with fixed-value combo boxes that usually translate into values that need to be worked with in code. Most programmers end up coding various kinds of string lists and KeyValuePairs trying to make this work, and end up doing it over and over.
The EnumFunctions module with the accompanying demo form is an attempt to automate this and to do so in a way that is language independent. By the way, the code and examples are provided in both VB.Net and C#.
Background
I usually try to write applications and products that are language and culture independent so that they can be translated to different countries and languages. This means that in practice, I do not store human-readable values (e.g. Strings) in the but instead rely on
To Search:
File list (Check if you may need any files):
Enum Combo Boxes
................\Enum Combo Boxes
................\Enum Combo Boxes CSharp
................\.......................\bin
................\.......................\...\Debug
................\.......................\...\Release
................\.......................\Contact.cs
................\.......................\ContactDefinitions.cs
................\.......................\Contacts.Designer.cs
................\.......................\Contacts.xsc
................\.......................\Contacts.xsd
................\.......................\Contacts.xss
................\.......................\Enum Combo Boxes CSharp.csproj
................\.......................\EnumFunctions.cs
................\.......................\frmContacts.cs
................\.......................\frmContacts.Designer.cs
................\.......................\frmContacts.resx
................\.......................\Program.cs
................\.......................\Properties
................\.......................\..........\AssemblyInfo.cs
................\.......................\..........\Resources.resx
................\.......................\..........\Resources1.Designer.cs
................\.......................\..........\Settings.Designer.cs
................\.......................\..........\Settings.settings
................\Enum Combo Boxes.sln
................\Enum Combo Boxes.sln.docstates.suo
................\Enum Combo Boxes.suo
................\................\bin
................\................\...\Debug
................\................\...\Release
................\................\Contact.vb
................\................\ContactDefinitions.vb
................\................\Contacts.Designer.vb
................\................\Contacts.xsc
................\................\Contacts.xsd
................\................\Contacts.xss
................\................\Enum Combo Boxes VB.vbproj
................\................\Enum Combo Boxes VB.vbproj.user
................\................\EnumFunctions.vb
................\................\frmContacts.Designer.vb
................\................\frmContacts.resx
................\................\frmContacts.vb
................\................\My Project
................\................\..........\Application.Designer.vb
................\................\..........\Application.myapp
................\................\..........\AssemblyInfo.vb
................\................\..........\DataSources
................\................\..........\...........\Contact.datasource
................\................\..........\Resources.Designer.vb
................\................\..........\Resources.resx
................\................\..........\Settings.Designer.vb
................\................\..........\Settings.settings