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

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -