>Hi Bill,
>
>All the above code was copied from Program.cs". There was a "new Form1" to initialize the form, and, button1_Click(...) was in it. Is this what you said?
>Was I miss something? Could you show me how to do it by writing some code for me?
>
>TIA,
>Ben
>
>
>>I note that you have the main method in the form.
>>When I create a winform app, the main method is automatically created in program.cs, which instantiates and executes the form.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.