In a small saucepan, combine milk and flour.
Beat with a wire whisk or rotary beater until smooth.
Cook over low heat until thick; cool.
In a medium mixing bowl, cream butter or margarine and sugar until light and fluffy.
Beating with electric mixer on high speed, gradually add milk-flour mixture.
Beat until smooth.
Stir in vanilla.