March 19th, 2013, 03:29 AM
How can i control photo gallery in a while cycle ?
Hi, I just joined, sorry for my bad englis :-(
I can not solve my problem ...I hope someone can help me.
In a form i have 12 "PictureBox" with 2 "Label" for each "PictureBox" and would like to see 12 Pic per page and then continue with a "click" to forward or a "click" to back.
could you do me an example with a table called "Table" and 2 fields "Field1" Field2 "?
.... I enclose a picture of what should be the presentation.
my DataBase is Ms Sql server (not CE)
ListViewItem Item = new ListViewItem(Cmd ["Nome"].ToString());
if (Contatore == 1)
TxNome_1.Text = Item.SubItems.Text;
TxLuogo_1.Text = Item.SubItems.Text;
pbFoto_1.ImageLocation = Item.SubItems.Text;
pbFoto _1.SizeMode = PictureBoxSizeMode.Zoom;
***** if (Contatore == 1) is repeated 12 time into the cycle *********Contatore is a “int” set to 1
Thanks you all, Nicola.
March 19th, 2013, 02:54 PM
Unfortunately, the above just won't work. You'll have to successfully post your image so that all can see what exactly you wish to accomplish.
It appears that you're trying to retrieve 12 listview images and put them on a screen and also be able to scroll the listview images backward and forward. Is my assumption correct?