we put 3 picture boxes, if we select 1 picture it show in another picture box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sareeka
    New Member
    • Feb 2010
    • 2

    we put 3 picture boxes, if we select 1 picture it show in another picture box

    mean if we select mango pic: it show in selectedpicbox: , if we select orangepic: it show in selectedpicbox , if we select apple pic: it show in selectedpicbox
  • Kinwang2009
    New Member
    • Feb 2010
    • 22

    #2
    Hi Shareeka,

    I hope you are talking about VB6, Try below codes;
    If you have three picbox namely Mangopicbox, Orangepicbox and Applepicbox, when you click on any above Picbox you wan display in one picbox called PicDisplayBox

    Code begins

    Option Explicit
    Private Sub Mangopicbox_Cli ck()
    PicDisplayBox.P icture = Mangopicbox.Pic ture
    End Sub

    Private Sub Orangepicbox_Cl ick()
    PicDisplayBox.P icture = Orangepicbox.Pi cture
    End Sub

    Private Sub Applepicbox_Cli ck()
    PicDisplayBox.P icture = Applepicbox.Pic ture
    End Sub

    Hope this helps

    Comment

    Working...