Ben
I tried to show you how I do it, but that doesn't seem to help.
Moving from VFP to C# is not easy.
When I was just about to give up on C# I went to a conference in NYC on WPF and met a guy who was 6'4 and weighed 400 pounds.
He told me that he wore out 2 sofas a year and I could see how that could happen.
I told him how I had been struggling with C#.
He told me that he had struggled too, but had mastered it.
He said "If someone like me can do it. anyone can."
That struck a chord.
The conference was awful but that contact with that guy paid for it.
Keep at it.
>Hi Bill,
>
>My problem is the form appears and disappears. It just no way to test each button.
>
>Ben
>
>
>>>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?
>>>
>>
>>Ben
>>
>>Ben
>>When I create a new winform app, I get two files:
>>
>>Program.cs
>>
>>using System;
>>using System.Collections.Generic;
>>using System.Linq;
>>using System.Windows.Forms;
>>
>>namespace TestForm
>>{
>> static class Program
>> {
>> /// <summary>
>> /// The main entry point for the application.
>> /// </summary>
>> [STAThread]
>> static void Main()
>> {
>> Application.EnableVisualStyles();
>> Application.SetCompatibleTextRenderingDefault(false);
>> Application.Run(new Form1());
>> }
>> }
>>}
>>
>>
>>
>>
>>
>>
>>Form1.cs
>>
>>using System;
>>using System.Collections.Generic;
>>using System.ComponentModel;
>>using System.Data;
>>using System.Drawing;
>>using System.Linq;
>>using System.Text;
>>using System.Windows.Forms;
>>
>>namespace TestForm
>>{
>> public partial class Form1 : Form
>> {
>> public Form1()
>> {
>> InitializeComponent();
>> }
>> }
>>}
>>
>>
>>I also get some support files for the form.
>>I don't get anything like what you have.
>>
>>Anyone who does not go overboard- deserves to.
>>Malcolm Forbes, Sr.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.