T
Timothy Taylor
Hello,
Once again, I am new to C#, but I have a simple question...
I noticed that Ctype, Cint, Cstr etc... is not supported in C# as in VB.NET
The only thing I could find is Convert.to... but that has no ToButton
method. I want to convert a sender object to a button so i can get/set it's
properties. In VB.NET i would just say
Dim btnSender as button = Ctype(sender, button)
what would be the equivalent of that?
Thanks a lot and please feel free to give me any more useful VB.NET to C#
newbie tips
-Tim
Once again, I am new to C#, but I have a simple question...
I noticed that Ctype, Cint, Cstr etc... is not supported in C# as in VB.NET
The only thing I could find is Convert.to... but that has no ToButton
method. I want to convert a sender object to a button so i can get/set it's
properties. In VB.NET i would just say
Dim btnSender as button = Ctype(sender, button)
what would be the equivalent of that?
Thanks a lot and please feel free to give me any more useful VB.NET to C#
newbie tips
-Tim