Results 1 to 1 of 1

Thread: vb .net

  1. #1
    Join Date
    Nov 2003

    Unanswered: vb .net

    Dear all,
    I am stocked in step e. See below. Can anyone help me? Thanks a lot.
    I need to code an application that allows the user to display an image that corresponds to the item selected in a list box. Step a. open the image solution. step b. set the list box's sorted property to true. step c. create a new form-level collection named mpictureboxcollection. step d. in the form's load event procedure, add the cloudpiceturebox, lightingpicturebox,rainpicturebox,snowpicturebox, and sunpicturebox controls to the mpictureboxcollection. after doing so, fill the elementlistbox with the following items: cloud, rain,snow,sun,and lighting, then select the first item in the list.(hint: when adding the picture boxes to the mpictureboxcollection, assign a key to each picture box. Relate each picture box's key to the index of its associated item in the list box.) step e. code the list box's selectedvaluechanged event procedure so that it displays, in the elementpicturebox control, the image that corresponds to the item selected in the list box.
    Below is the code that I have done so far
    Private Sub ImageForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    'add CloudPictureBox control to mPictureBoxCollection

    'add RainPictureBox control to mPictureBoxCollection
    'add SnowPictureBox control to mPictureBoxCollection
    'add SunPictureBox control to mPictureBoxCollection
    'add LightningPictureBox control to mPictureBoxCollection
    ' Fill the elementlistbox with cloud,rain,snow,sun, and lighting

    End Sub
    Private Sub ElementListBox_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ElementListBox.SelectedValueChanged
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts