btn_OK click event not firing

rfresh

Well-Known Member
Licensed User
Longtime User
I have a small test app to workout the kinks in adding a popup menu to display my licensing info.

The problem I'm having with it is that when the lic screen displays, I have an OK button that I press to close the screen and load the main screen again, but when I press the OK button nothing happens!

I'm attaching my small test app.
 

Attachments

  • Menus.zip
    7.5 KB · Views: 304

klaus

Expert
Licensed User
Longtime User
Do you want to do everything in the main activity or do you want to do the licensing in the License activity.
Because you load the Licence layout in the main activity but the Button_Click event is in the License activity, but you never call the License activity. You must decide what you want to do and where.

Best regards.
 
Upvote 0

admac231

Active Member
Licensed User
Longtime User
I think you're a bit confused about how layouts and activities work.

What you're currently doing is loading the "Main" layout then loading "license" layout on top of it on the Main activity. The reason the button doesn't work is because your Button1_Click is in the license Activity which is never started.

I have attached a working version of your program.
 

Attachments

  • Menus_Fixed.zip
    7.6 KB · Views: 289
Upvote 0
Top