I know how to make the button hidden and visible, What I am trying to do is to tell the button to hide when a specific person logs in.
So what I have is one database now with all the logins stored in it with a column called Security Level.
At login the user will type their ID Password and their Security Level(Administr ator, Project Manager, Employee).
What I'm not exactly sure how to do is to pull that SecurityLvl_txt .Text over to the button's so they know what level is being accessed and to tell them when and when not to hide.
I know I need an if:
if(SecurityLvl = Administrator)
{
button.visible = true
}
else
{
button.visible = false
}
Just a little confused on how to pull the input over into the other form I guess.
So what I have is one database now with all the logins stored in it with a column called Security Level.
At login the user will type their ID Password and their Security Level(Administr ator, Project Manager, Employee).
What I'm not exactly sure how to do is to pull that SecurityLvl_txt .Text over to the button's so they know what level is being accessed and to tell them when and when not to hide.
I know I need an if:
if(SecurityLvl = Administrator)
{
button.visible = true
}
else
{
button.visible = false
}
Just a little confused on how to pull the input over into the other form I guess.
Comment