10-27-2008 07:09 PM
Hi, I'm new to Measurement Studio and also to Visual Studio 2008, however, in my C# application I came across this problem where I added a toggle switch from MS8.5 .NET and double clicked it so that it will create the event handler for when I toggle the switch.
A CS0111 Compiler Error occurred stating that 'switch_StateChanged' already defines a member called 'member' with the same parameter types. So to fix the error, I had to change the automatic code to 'switch_MyStateChanged' (as well as in the Form.Designer where the instantiation of the event handler is defined).
So is this a bug in the NationalInstruments.UI.ActionEventArgs library or did I do something wrong on my end??? Is this kind of 'tweaking the code' normal with .NET applications and Measurement Studio??
TIA,
Mike S.
Simi Valley, CA
10-27-2008 07:31 PM
Oops! I must be getting absent-minded in my old age..... I moved the original 'StateChanged' skeleton code and then forgot I did it, hence, the reason why got the compiler error since the method was duplicated.
.....Nevermind........
Mike S.
Simi Valley, CA