C#: Populate a ComboBox with Enum Values

A C# example for populating a ComboBox with the values of an Enum.

The Enum:

public enum FromAccount
    { checking = 0, savings = 1, foodstamps = 2, cashbenefit = 3 }

The Code:

comboBox1.DataSource = Enum.GetValues(typeof(FromAccount));
comboBox1.SelectedIndex = 0;


Software: BPSNMPMon updated

An update to BPSNMPMon, a SNMP (Simple Network Management Protocol) utility that will monitor host processor, storage and interface values, is now available. The latest version includes several enhancements:

  • Added AutoHeight option to scale the interface graph based on visible values
  • The charts now resize with the form
  • SNMP counters can be saved to a delimited log file 


BPSNMPMon performs various SNMP queries at a user-defined time interval and graphically represents the information in a simple user friendly interface.


Add BPSNMPMon to your network management "toolkit".


SQL: SQLServerAgent Error: Job xxx does not exist in the job cache


I recently encountered the error SQLServerAgent Error: Job xxx does not exist in the job cache (where xxx is the internal id number). This error was a bit misleading at first as I confirmed the job entry did exist. The cause of the error was that the SQLAgent service account didn’t have the necessary permissions to read the job data. Once the permissions were properly setup the job executed.