C# set pictureboxes to hide using SQL Server database -
sqldatareader reader = null; sqlconnection cn = new sqlconnection(global::vaja15.properties.settings.default.database1connectionstring); cn.open(); sqlcommand sda = new sqlcommand("select * uporabnik attacktype='melee' ", cn); reader = sda.executereader(); reader.read(); cn.close();
my database has column attacktype
values melee or ranged. , column picturebox
possible values picturebox1, picturebox2....
i didn't saved pictures inside database wrote names on form. i'm trying select attacktype melee , set ranged picturebox1.hide();
can filter these 2 kinds. can sql code?
Comments
Post a Comment