Hi Guys Here simple sample how to use the system state class in windows mobile. Question: How to check the cradlepresent in the Windows mobile Device or Emulator ? Answers: {codecitation class="brush: c#; gutter: true;" width="600px"} SystemState cradleState = null; private void Init() { cradleState = new SystemState(SystemProperty.CradlePresent); cradleState.Changed += new ChangeEventHandler(cradleState_Changed); } void cradleState_Changed(object sender, ChangeEventArgs args) { bool isPresent =Convert.ToBoolean(SystemState.GetValue(SystemProperty.CradlePresent)); if (isPresent) { MessageBox.Show("Present"); } } {/codecitation} Thank you RRaveen |