cancel
Showing results for 
Search instead for 
Did you mean: 

Hide button

Former Member
0 Kudos

I have created a form using screen painter.I have added two buttons which I am accessing through vb.net as,

Dim btnFind As SAPbouiCOM.Button

Dim btnSave As SAPbouiCOM.Button

btnFind = objForm.Items.Item("btnFind").Specific

btnSave = objForm.Items.Item("btnSave").Specific

I want to hide find button on form loading and show it when find button is clicked.But I am not getting visible property of button.How can I toggle between these two buttons.

Accepted Solutions (1)

Accepted Solutions (1)

AdKerremans
Active Contributor
0 Kudos

Hi Dilip,

visiblility is not a property of the button, but of the item

objForm.Items.Item("btnFind").visible = false

Regards

Ad

Answers (1)

Answers (1)

Former Member
0 Kudos

Dilip,

U Create one button in screen painter and by default set it to invisible.When u click the find button enable that button visible.

Regards,

Antiha