Butter the outside sides of the bread. In the middle place the cheese, ham, onion and corn then top with the top slice of bread.
Either toast in a frying pan over medium heat, turning once, until golden brown on both sides and cheese is melted, or simply place in your cheese toasty (jaffle) maker until done.