how to check a values of database column and how to use them with if statement in c# windows form

  • Thread starter Thread starter John6272
  • Start date Start date
J

John6272

Guest
Hi, i have a form with 8 buttons, also i have 2 database table 1st is userlogin table and 2nd is userhideforms. in userlogin table there is only 3 columns(id,username,password) and in userhideforms table there is 9 columns(username,button1,button2,button3,button4,button5,button6,button7,button8) all buttons column have only "True" or "False" value. i just want that when user login into form then the 8 buttons auto hide or unhide using userhideform column values. e.g i have a username "user1" and i want that when user1 login, the form show only button1, button3, button7 and hide the other buttons.

only that buttons show that have "True" value in userhideform table and that buttons hide that have "False" value in userhideform table. i'm using sqlite database.

i don't know how to do that. kindly help me.

Continue reading...
 
Back
Top