這是Microsoft Visual Studio 2005 VB~背景顏色判斷式
1.如何改成C#專用~我要怎麼改
2.C#若不改背景顏色,只改字體顏色~我要怎麼改

If CType(FormView3.FindControl("MYCOUNTLABEL"), Label).Text <> 0
Then

CType(FormView3.FindControl("MYCOUNTLABEL"), Label).BackColor = Drawing.Color.LightPink

Else
  
CType(FormView3.FindControl("MYCOUNTLABEL"), Label).BackColor = Drawing.Color.LightGreen

感謝您