I want to write below VB.net code to C#. What is best equivalent code in C#:
Private Sub AllControlDesign2(ByRef TB As Control)
If TB.GetType Is GetType(StatusStrip) Then
CType(TB, TextBox).ReadOnly = True
TB.BackColor = stFromBackColour
TB.ForeColor = Color.Gray
End If
End Sub
This is the equivellant, copied from DeveloperFusion.com