#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    1
    Rep Power
    0

    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)
    [IMG]C:\Users\Nicola\Desktop\Screen.jpg\[/IMG]

    ListViewItem Item = new ListViewItem(Cmd ["Nome"].ToString());
    Item.SubItems.Add(Cmd ["Luogo"].ToString());
    Item.SubItems.Add(Cmd ["Foto"].ToString());
    if (Contatore == 1)
    {
    TxNome_1.Text = Item.SubItems[0].Text;
    TxLuogo_1.Text = Item.SubItems[1].Text;
    pbFoto_1.ImageLocation = Item.SubItems[2].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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    187
    Rep Power
    82
    .... I enclose a picture of what should be the presentation.
    my DataBase is Ms Sql server (not CE)
    [IMG]C:\Users\Nicola\Desktop\Screen.jpg\[/IMG]
    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?

IMN logo majestic logo threadwatch logo seochat tools logo