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

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 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>