combobox and picture boxes

zowie

New member
Joined
Nov 10, 2008
Messages
3
Programming Experience
Beginner
Hi, i am new here and new in VB.Net, student 1st semester.
Could anyone help me pls with my project.
I have combobox wich contains 2 items (wolf and wolfcub), below it a checkbox "Agree" and button choose.
The thing is when i choose an item in combobox (say Wolf), i click checkbox Agree and then button Choose, so the picture of the Wolf must appear (If i chose wolfcub the same but the picture of he wolfcub must appear).
So far i managed to do that when i tick the checkbox the picture of the WOLF comes, and when i disable the checkbox the picture of the WOLFCUB appeares and the picture of the WOLF still on the screen. :confused:
Could you, please, give me some idea. Thank you.
 
Sorry, but i have solved it already i think. I had a problem with declaring the items of the combobox, and here how i did it and it works

VB.NET:
        Dim wolf As Long
        Dim wolfcub As Long
        Dim volk As Long
        Dim babyvolk As Long
        volk = animalsCoBX.Text = "wolf"
        babyvolk = animalsCoBX.Text = "wolfcub"


        Dim clearDisplay As Boolean = False

Thanks for reply though! :D
 
Back
Top