Glenn,
You can convert the code into C# as given below
string updateSql = "UPDATE tblUsers " + "SET Status = Locked " + "WHERE UserID = @UserID";
We have a online tool to convert the VB.NET to c#
http://www.developerfusion.com/tools/convert/vb-to-csharp/?batchId=78229545-6a3f-4da1-9b16-5726629acd9b