So, by doing the following code, (Confirm)sender, the (Confirm) is type casting the sender object to type Confirm? Is that what you are saying. Did I understand this right?
Man, as a long-time VFP developer, this seems so weird to me. It is one of the reasons I always walked away from C# in the past, because of stuff like this. I've got to get through this and feel more comfortable with C#, so rather than walk away, I'll read up on it and hope if I can stomach it, er, I mean, get used to it. :)
Thanks for the explanation, Tim,
Cecil
>Hi Cecil,
The object passed into the event is called sender and is an object type. In order to use the methods and properties on that specifically for a Confirm type it needs to be cast from type object to type Confirm. Putting that in parens in front is a cast to that type.
Tim