You have defined an EpiShape manually in code or you are trying to reference an existing one?
If #1) You dont want to do that, just drop one on form
If #2) You need to get a reference to that shape before you try to use it. Before var chk, add sInactive = (EpiShape)csm.GetNativeControlReference(“the guid of the shape here”);