Android Question B4XCombobox And Edittext on same place

Terradrones

Active Member
Hi All

I need help again please...or maybe a kick under my butt in the right direction.

I have a Combobox and a Edittext box in the same place.

When the Activity loads, the program checks if there is any info stored in the SQLite DB and displays it in the Combobox.

Then I have a Checkbox (for new entries) that if it is selected, the Combobox becomes invisible and the Edittext box becomes visible, so that new data can be entered.

But it is not working...it hides the Combobox, but I cannot see the Edittext box. I can click on the Edittext box and type in data, but I cannot see it. It saves the data entered in the Editbox.

B4X:
[

Sub NewStake_Click
    If NewStake.Checked=True Then
        'Enter a new Stake
        SelectStake.cmbBox.Visible=False
        Stake.Visible=True
    Else
        SelectStake.cmbBox.Visible=True
        Stake.Visible=False
    End If
End Sub

]
 
Top