Basic button question

Penfound

Active Member
Licensed User
Longtime User
Having moved over from VB and .net I am struggling to find out how we detect the button being clicked. In other basics a Button_Click event was available.

At the moment I have three layouts. The main layout loads without a problem and is the title page which has two buttons on it. I want to click one button and switch to a different layout called front_card whilst the other button should change display to la layout called back_card.

What code do I use and where should it go? Please?

Penfound
 

grant1842

Active Member
Licensed User
Longtime User
I am new all so but I believe StartActivity(front_card) will load the other activity for you.
You can use the Generate Members in the designer to create the button click event.
Or on the abstract designer layout right click on the button and choose Generate and the Click this will generate the button click .
Be sure to all so choose the Dim Generate to generate the Dim as well.
 
Last edited:
Upvote 0

Penfound

Active Member
Licensed User
Longtime User
Thanks and solution

Thanks everyone for your input.

The solution was

Activity.loadlayout("main") etc.

:sign0098:
 
Upvote 0
Top