P Penfound Active Member Licensed User Longtime User May 22, 2012 #1 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
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 May 23, 2012 #2 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: May 23, 2012 Upvote 0
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.
NJDude Expert Licensed User Longtime User May 23, 2012 #3 Take a look at THIS quick tutorial. Upvote 0
P Penfound Active Member Licensed User Longtime User May 25, 2012 #4 Thanks and solution Thanks everyone for your input. The solution was Activity.loadlayout("main") etc. :sign0098: Upvote 0
Thanks and solution Thanks everyone for your input. The solution was Activity.loadlayout("main") etc. :sign0098: