Click here to Skip to main content
15,845,213 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: record device!! Pin
Member Alienoiz19-Jun-23 8:08
Member Alienoiz19-Jun-23 8:08 
GeneralRe: record device!! Pin
Member Alienoiz19-Jun-23 9:30
Member Alienoiz19-Jun-23 9:30 
GeneralRe: record device!! Pin
Richard MacCutchan19-Jun-23 10:12
mveRichard MacCutchan19-Jun-23 10:12 
GeneralRe: record device!! Pin
Member Alienoiz19-Jun-23 10:34
Member Alienoiz19-Jun-23 10:34 
AnswerRe: record device!! Pin
Ralf Meier20-Jun-23 5:05
professionalRalf Meier20-Jun-23 5:05 
QuestionListbox Highlight color! Pin
Member Alienoiz18-Jun-23 6:26
Member Alienoiz18-Jun-23 6:26 
AnswerRe: Listbox Highlight color! Pin
Richard MacCutchan18-Jun-23 6:40
mveRichard MacCutchan18-Jun-23 6:40 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz18-Jun-23 7:00
Member Alienoiz18-Jun-23 7:00 
hi..yes im using this code:
VB
<pre>   Private Sub ListBox1_DrawItem(sender As Object, e As DrawItemEventArgs) Handles ListBox1.DrawItem
        If ListBox1.SelectedItem <> "" Then
            e.DrawBackground()
            If (e.State And DrawItemState.Selected) = DrawItemState.Selected Then
                e.Graphics.FillRectangle(Brushes.Red, e.Bounds)
            End If
            Using b As New SolidBrush(e.ForeColor)
                e.Graphics.DrawString(ListBox1.GetItemText(ListBox1.Items(e.Index)), e.Font, b, e.Bounds)
            End Using
            e.DrawFocusRectangle()
        End If
    End Sub


but it seems that the items text are not appearing in the right color..only when i click them...
this is hard to explain...
GeneralRe: Listbox Highlight color! Pin
Richard MacCutchan18-Jun-23 7:39
mveRichard MacCutchan18-Jun-23 7:39 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz18-Jun-23 7:49
Member Alienoiz18-Jun-23 7:49 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz18-Jun-23 8:08
Member Alienoiz18-Jun-23 8:08 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz18-Jun-23 8:47
Member Alienoiz18-Jun-23 8:47 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz18-Jun-23 9:41
Member Alienoiz18-Jun-23 9:41 
GeneralRe: Listbox Highlight color! Pin
Richard MacCutchan18-Jun-23 22:39
mveRichard MacCutchan18-Jun-23 22:39 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz19-Jun-23 1:46
Member Alienoiz19-Jun-23 1:46 
GeneralRe: Listbox Highlight color! Pin
Richard MacCutchan19-Jun-23 1:50
mveRichard MacCutchan19-Jun-23 1:50 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz19-Jun-23 2:02
Member Alienoiz19-Jun-23 2:02 
GeneralRe: Listbox Highlight color! Pin
Richard MacCutchan19-Jun-23 2:38
mveRichard MacCutchan19-Jun-23 2:38 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz19-Jun-23 3:28
Member Alienoiz19-Jun-23 3:28 
GeneralRe: Listbox Highlight color! Pin
Richard MacCutchan19-Jun-23 3:44
mveRichard MacCutchan19-Jun-23 3:44 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz19-Jun-23 3:51
Member Alienoiz19-Jun-23 3:51 
GeneralRe: Listbox Highlight color! Pin
Richard MacCutchan19-Jun-23 4:01
mveRichard MacCutchan19-Jun-23 4:01 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz19-Jun-23 4:08
Member Alienoiz19-Jun-23 4:08 
GeneralRe: Listbox Highlight color! Pin
Member Alienoiz19-Jun-23 4:50
Member Alienoiz19-Jun-23 4:50 
GeneralRe: Listbox Highlight color! Pin
Richard MacCutchan19-Jun-23 5:50
mveRichard MacCutchan19-Jun-23 5:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.