Using a few layout

mrjaw

Active Member
Licensed User
Longtime User
Hi!
I am developing an app with 4 layout and 1 tabcontrol. The first page has user/pass to go to second page or page with tab.

the question is how can I call the layout page control if user/pass are correct.
What is the code in accept button ?

Thks!
 

rfresh

Well-Known Member
Licensed User
Longtime User
In the Submit or Login button on click event is where you put your code to check for the correct username and pw. Most likely this data will come from your SQL database or a flat ASCII text file.

Once you determine they have logged in correctly, then you StartActivity("TabControl") or what ever the next (Activity) screen is you want to take them to.

If they don't login correctly, then you stay on the same login screen and display an error msg; incorrect username or bad password, etc. A dialog box would work nicely here for that.
 
Upvote 0
Top