I have a list of button names that exist on my form in my DB, I have added the functionallity for the admin user to determine what buttons they wish to see i.e. the DB has column for the name and another column specifying true or false. What I would like to be able to do is build the VB code up form the DB.
An example code (not correct just to give you an idea)
Is this possible
I hope this made sense.
Thanks
Simon
An example code (not correct just to give you an idea)
Visual Basic:
Do While myReader.Read
' get button name from DB
dim buttonName as string = myReader("columnName")
' get button is visible (true or false) from DB
dim buttonVis as boolean = myReader("columnVis")
' This is where I want to dynamically build the vb code using the above
' values
me.buttonName.visible = buttonVis
Loop
Is this possible
I hope this made sense.
Thanks
Simon