C# Are you missing a using directive or an assembly reference?
Solution 1
Go into the designer for your placeOrderForm form, select tabPage1 from the field list in the Properties window, select the Events view and just clear the entry (should read tabPage1_Click) in the Click event.
Should see you right.
Solution 2
Deleted the highlighted line in the .designer.cs file
TheEnd
Updated on June 28, 2020Comments
-
TheEnd almost 4 years
This error message started appearing during compilation after I deleted the entire code for the tabPage1_Click event behavior.
It didnt have any body code in it, because I accidentaly clicked on it fast two times and the event code got added to the source when I just started programming the application. Now I'm done and everything is tip top, except that useless definition of tabPage1_Click.
Error 1 'Bar.placeOrderForm' does not contain a definition for 'tabPage1_Click' and no extension method 'tabPage1_Click' accepting a first argument of type 'Bar.placeOrderForm' could be found (are you missing a using directive or an assembly reference?) C:\admin\Bar\Bar\placeOrderForm.Designer.cs 96 67 Bar
-
TheEnd over 13 yearsThere's nothing in any of the events for that control.
-
TheEnd over 13 yearsThe box is empty. I just clicked the error twice, found the line of code and deleted it just like two of the other posters explained and it worked. Thanks.