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

Flickering ComboBox

$
0
0
I've created a ComboBox, but for some reason, something makes it flicker and crash. The flaw occurs in this Subprogram, but I just can't figure out how to fix it. If any other parts of the code are required, I'd be happy to provide them.

https://www.dropbox.com/s/x1lxw8i2f1n49pp/Glitch.avi

Code:

Private Sub chaptername_combobox_SelectedIndexChanged(sender As Object, e As EventArgs) Handles chaptername_combobox.SelectedIndexChanged
        GD.chaptertitle(index) = chaptername_combobox.Text
        GD.chaptercontent(index) = chaptercontent_richtextbox.Text
        index = chaptername_combobox.SelectedIndex

        If GD.chaptertitle(chaptername_combobox.SelectedIndex) <> "" Then
            chaptername_combobox.Text = GD.chaptertitle(index)
        End If
        If GD.chaptercontent(chaptername_combobox.SelectedIndex) <> "" Then
            chaptercontent_richtextbox.Text = GD.chaptercontent(index)
        End If
    End Sub

Thanks.

Viewing all articles
Browse latest Browse all 27193

Trending Articles



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