James Alcroft

James Alcroft

  • NA
  • 18
  • 22.6k

Inherited forms

Aug 6 2008 6:46 PM
Hi. I have been developing for many years, in Delphi, and I am currently looking at changing to C#. I understand the concept on inherited forms, but I am struggling with it in C#.

I have created a DLL which contains a form. On this form is simply a BindingNavigator and a DataGridView. Everything works fine. When I add this form to another form in my project, all works. But why can't I add insert button onclick events without coding the assignment, ie :frm.navInsert.Click += NewContact and then have to create a method NewContact?

If I add the above line into the form.designer.cs, I then can't view the form in design mode. I'm not asking for much, it is really simple in Delphi, you click on the grid and you can change any property and create any event, but you can't click on the grid in C#, only the form.

Any help would be gratefully recieved.

Many thanks.

James


Answers (2)