Click here to Skip to main content
16,006,013 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Async Sockets - the answer Pin
Lee Humphries20-Jul-09 19:11
professionalLee Humphries20-Jul-09 19:11 
Questiontest Pin
chandni patel18-Jul-09 23:35
chandni patel18-Jul-09 23:35 
AnswerRe: test Pin
Abhijit Jana19-Jul-09 0:14
professionalAbhijit Jana19-Jul-09 0:14 
AnswerResult Pin
leckey19-Jul-09 18:42
leckey19-Jul-09 18:42 
AnswerRe: test Pin
0x3c019-Jul-09 20:45
0x3c019-Jul-09 20:45 
QuestionCombobox - DrawItem and dragging scroll bar problem Pin
David Hovey18-Jul-09 19:18
David Hovey18-Jul-09 19:18 
AnswerRe: Combobox - DrawItem and dragging scroll bar problem Pin
Luc Pattyn19-Jul-09 2:43
sitebuilderLuc Pattyn19-Jul-09 2:43 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
David Hovey19-Jul-09 6:50
David Hovey19-Jul-09 6:50 
Thanks for the comment. You remind me to think about that more.
New code is below, but issue still exists.

I was thinking that perhaps I needed a custom class, that overrides the OnPaint method. This doesn't seem correct as the method would draw the part of the control that doesn't drop down.

I searched for quite a while and it doesn't seem anyone else has had this problem.

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim i As Integer

        For i = 1 To 200
            ComboBox1.Items.Add(i)
        Next

    End Sub

    Private Sub ComboBox1_DrawItem(ByVal sender As Object, ByVal e As System.Windows.Forms.DrawItemEventArgs) Handles ComboBox1.DrawItem

        If e.Index = -1 Then
            Exit Sub
        End If

        e.DrawBackground()

        e.Graphics.DrawString(ComboBox1.Items(e.Index).ToString(), e.Font, Brushes.Black, e.Bounds.X, e.Bounds.Y)

    End Sub

End Class

GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
Luc Pattyn19-Jul-09 8:26
sitebuilderLuc Pattyn19-Jul-09 8:26 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem [modified] Pin
David Hovey19-Jul-09 11:51
David Hovey19-Jul-09 11:51 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
Luc Pattyn19-Jul-09 12:17
sitebuilderLuc Pattyn19-Jul-09 12:17 
GeneralRe: Combobox - DrawItem and dragging scroll bar problem Pin
David Hovey19-Jul-09 12:33
David Hovey19-Jul-09 12:33 
Questionloading text [modified] Pin
deadcell_618-Jul-09 8:50
deadcell_618-Jul-09 8:50 
AnswerRe: loading text Pin
Luc Pattyn18-Jul-09 9:07
sitebuilderLuc Pattyn18-Jul-09 9:07 
GeneralRe: loading text [modified] Pin
deadcell_618-Jul-09 9:11
deadcell_618-Jul-09 9:11 
GeneralRe: loading text Pin
Luc Pattyn18-Jul-09 9:21
sitebuilderLuc Pattyn18-Jul-09 9:21 
GeneralRe: loading text Pin
deadcell_618-Jul-09 9:30
deadcell_618-Jul-09 9:30 
GeneralRe: loading text Pin
molesworth18-Jul-09 10:02
molesworth18-Jul-09 10:02 
QuestionC#.net Display Pin
eyeshield2118-Jul-09 5:55
eyeshield2118-Jul-09 5:55 
AnswerRe: C#.net Display Pin
Luc Pattyn18-Jul-09 9:08
sitebuilderLuc Pattyn18-Jul-09 9:08 
AnswerRe: C#.net Display Pin
Eddy Vluggen18-Jul-09 9:14
professionalEddy Vluggen18-Jul-09 9:14 
QuestionPrintable DataGrid Pin
danishkhawar18-Jul-09 4:47
danishkhawar18-Jul-09 4:47 
AnswerRe: Printable DataGrid Pin
Ravi Bhavnani18-Jul-09 6:10
professionalRavi Bhavnani18-Jul-09 6:10 
QuestionHow to create a set up Pin
ksss_maheshece17-Jul-09 23:21
ksss_maheshece17-Jul-09 23:21 
AnswerRe: How to create a set up Pin
Abhijit Jana18-Jul-09 1:40
professionalAbhijit Jana18-Jul-09 1:40 

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.