06-25-2007 01:28 PM
06-25-2007 01:57 PM
this
.axEntryPoint1Button.Enter += new System.EventHandler(this.AxEntryPoint1ButtonEnter);06-26-2007 01:17 PM
Hi Kyle,
You said that you were trying to open this project in SharpDevelop, what are you opening it in now? If it is Visual Studio, what version are you using?
Also, I know you said you didn't change any code, but it sounds like something has changed because when I open the Full-Featured OI I am able to compile and run it. Specifically, I have a definition for the AxEntryPoint1ButtonEnter. Do you have the following line of code?
private NationalInstruments.TestStand.Interop.UI.Ax.AxButton axEntryPoint1Button
Also, does the button appear on your Form? It should look like a simple button that says ENTRYPOINT1. If you are missing the button, you could try copying the ENTRYPOINT2 button and changing its name.
Let me know if those things are there for you and we'll go from there.
Regards,
Matt M.
NI
06-26-2007 03:36 PM
06-27-2007 10:43 AM
Hi Kyle,
Are you sure nothing has been changed in your code? Because I didn't have the line of code that is causing your problem until I added an Enter event for the button.
In any case, as I was looking over your code, I realized that it wasn't the button that is not defined, but rather the event. Your code is looking for an event handler entitled AxEntryPoint1ButtonEnter. Is that function defined anywhere in your code? If it is not, is there a similar function? When I created the enter event, it added the function as axEntryPoint1Button_Enter. Is that function defined in your code?
In order to make this error disappear, you either need to remove the line of code (which would remove the Enter event) or update the line of code to point to the correct event handler. This should solve your problem.
Matt M
NI
06-28-2007 02:58 PM
Matt,
I appreciate all your help and for putting up with my elementary questions. I must have accidently clicked the button while looking over things.
Thank you again.