title: How to show checkbox as checked in SAP B1 UserForm?
body: <pre><code>namespace BordroPlus
  {
      [FormAttribute("BordroPlus.Puantaj", "Puantaj.b1f")]
      class Puantaj : UserFormBase
      {
          SAPbouiCOM.Form oForm;
          .....
  
          CheckBox4.ValOn = "Y";
          CheckBox4.ValOff = "N";
          oForm.DataSources.UserDataSources.Add("UD_4", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1);
          CheckBox4.DataBind.SetBound(true, "", "UD_4");
  
         // this sets the checkbox to checked
          oForm.DataSources.UserDataSources.Item("UD_4").Value = "Y"; `I have created an user form and tabcontrol in the form. Then i create a check box in the tab.
  </code></pre>
  
  <p>How can i start the checkbox as checked?</p>
  
  <p>Thats my code.
  I am using C# in Visual Studio.</p>