Preheat the oven to 350 degrees F (175 degrees C).
Melt butter in a 2-quart baking dish.
Mix flour and sugar together in a bowl; add beaten eggs and beat using an electric mixer until smooth. Stir in creamed corn and whole corn. Pour mixture into melted butter in the baking dish; do not stir.
Bake in the preheated oven until top is browned, about 1 hour.