Form Customisation

HI Experts…

I am getting complier error in Forms that I cant seem to work out.

Simple Button click will not work as per the code below after adding the handler

Any assistance / hints would be great.

Steve

public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete ‘Begin/End Wizard Added Variable Initialization’ lines **
// Begin Wizard Added Variable Initialization

	// End Wizard Added Variable Initialization

	         // Begin Wizard Added Custom Method Calls
	this.epiButtonC1.Click += new System.EventHandler(this.epiButtonC1_Click);
	        // End Wizard Added Custom Method Calls
}

Compile error is

Compiling Custom Code …

----------errors and warnings------------

Error: CS1061 - line 54 (2190) - ‘Script’ does not contain a definition for ‘epiButtonC1_Click’ and no extension method ‘epiButtonC1_Click’ accepting a first argument of type ‘Script’ could be found (are you missing a using directive or an assembly reference?)

** Compile Failed. **

You have no method to handle the button click

Thanks.

For some reason the handler is not getting put into the code when I clicking either button to update the event code.

I will work on this.

Steve

I’ve had that happen before.

Usually I can get completely out and back in and it will work properly.

If it doesn’t, either add the code manually and move on with your life, or remove the existing code, and any xml references in the custom xml editor, save, get back out and back in, and try again.

2 Likes