Android Question Button Control - Unable to Programmatically Control

Azhar

Active Member
Licensed User
Longtime User
Hi

This is so strange. I just can't programmatically control a simple button control programmatically.
I can programmatically change it's .text but not .visible and .enable methods

All I want to do is make the button disappear when an event happens (I.e remove the btnAdd control when another event occurs)

Am I missing something?

Thanks,

Azhar
 

DonManfred

Expert
Licensed User
Longtime User
Am I missing something?
Yes, uploading a sample project which shows the issue.

Noone can help you with the Information you provided.
 
Upvote 0

Azhar

Active Member
Licensed User
Longtime User
You say that btnTest.Text = "any text" works.
So, haven't you tried:
btnTest.Visible = False or btnTest.Visible = True
btnText.Enabled = False or btnText.Enabled = True
Hi Klaus, yep I've tried all that. Plus the spinner controls don't drop down. I'm unable to upload even as a zip file as the minimum size I can get is 6Mb and that exceeds the server's limit.
 
Upvote 0

Albert Kallal

Active Member
Licensed User
Perhaps you place a sleep(0) right after you set the button.Visible = False in code?

Albert D. Kallal
Edmonton, Alberta Canada
 
Upvote 0
Top