Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27459

VS 2008 COMBOBOX Update Replication

$
0
0
Hello
I am completely stumped.
I have a combo box which when physically updated calls a sub routine, which recalls some graphics into a picture box.

The code in the Combo box updated property is

Code:

Private Sub Combo_Panel_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Combo_Panel.SelectedIndexChanged
        Call recall_defects()
    End Sub

However i would like to call the sub routine without updating the combobox and using the same value already chosen (ie replicating a combo update)


Code:

..............

            Next

            IO.File.WriteAllLines("AMLTest.csv", lines)
            PictureBox1.BackgroundImage = Image.FromFile(Combo_Part.Text & ".jpg")
            Call recall_defects()
........

However, this does not run the routine in the same way as physically selecting the combo box item again.............Why?

Viewing all articles
Browse latest Browse all 27459

Latest Images

Trending Articles



Latest Images