Ahmet Emin Pehlivan
Ahmet Emin Pehlivan

Reputation: 83

How to add a button to SAP B1 UserForm in Visual Studio?

I wanna add a button,checkbox,tabcontrol and something like that with code. How can i do this?

Actually i wanna add something to tabcontrol.

I am using C#.

Upvotes: 0

Views: 1638

Answers (2)

kattav mauk
kattav mauk

Reputation: 56

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);

Upvotes: 1

Teta
Teta

Reputation: 148

Have a look in the SDK samples, you have a lot of examples on how to do it.

Upvotes: 0

Related Questions