I am programing and application for work which requires a certain level of access rights to users. Once logged in I get the access level number 1-10 which is then put onto a splash screen in a hidden txt box.
on the closure of the splash screen i would like it to go to a menu for that access right.
This is the code I am using
- private void tmr_splash_Tick(object sender, EventArgs e)
- {
- prb_splash.Increment(1);
- if (prb_splash.Value == 100)
- tmr_splash.Stop();
- if (prb_splash.Value == 100)
- this.Hide();
- if (prb_splash.Value == 100 & (!txt_number.Text.Contains("10")))
- {
- frm_Artemis_admin aa = new frm_Artemis_admin();
- aa.ShowDialog();
- }
- else
- if (prb_splash.Value == 100 & (!txt_number.Text.Contains("09")))
- {
- frm_Employees_edit aa = new frm_Employees_edit();
- aa.ShowDialog();
- }
The application runs but even though I have changed the access rights to 9 to test it its still going to the admin menu?
If anyone can help that would be great.
Many Thanks :)