Ich möchte einen Button, Checkbox, Tabcontrol und so etwas mit Code hinzufügen. Wie kann ich das machen?Wie füge ich eine Schaltfläche zu SAP B1 UserForm in Visual Studio hinzu?
Eigentlich möchte ich etwas tabcontrol hinzufügen.
Ich benutze C#.
Ich möchte einen Button, Checkbox, Tabcontrol und so etwas mit Code hinzufügen. Wie kann ich das machen?Wie füge ich eine Schaltfläche zu SAP B1 UserForm in Visual Studio hinzu?
Eigentlich möchte ich etwas tabcontrol hinzufügen.
Ich benutze C#.
ref: How to dynamically generate a TextBox control.
TextBox txt = new TextBox();
txt.ID = "textBox1";
txt.Text = "txtbox";
tabcontrol1.Controls.Add (txt);
Label lbl = new Label(); lbl.Text = "Lbl";
tabcontrol1.Controls.Add (lbl);
Schauen Sie sich die SDK-Beispiele an, Sie haben viele Beispiele dafür.
wo soll ich das schreiben? In der Funktion? private void Form_LoadBefore (SAPbouiCOM.SBOItemEventArg pVal, aus Bool BubbleEvent) { } @ kattav-Mauk –
Code in Konstrukteurs öffentliche Form add() { InitializeComponent(); // hier } –