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.
我怎样才能启动复选框?
那是我的代码。我在 Visual Studio 中使用 C#。