Click here to Skip to main content
15,905,148 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: I want to ask for Visual Basic Pin
Colin Angus Mackay23-Aug-05 23:32
Colin Angus Mackay23-Aug-05 23:32 
GeneralRe: I want to ask for Visual Basic Pin
toxcct24-Aug-05 1:19
toxcct24-Aug-05 1:19 
GeneralRe: I want to ask for Visual Basic Pin
Rizwan Bashir24-Aug-05 2:04
Rizwan Bashir24-Aug-05 2:04 
GeneralDI want to ask for Visual Basic Pin
chuyendd23-Aug-05 23:07
chuyendd23-Aug-05 23:07 
GeneralI want to ask for Visual Basic Pin
Anonymous23-Aug-05 22:50
Anonymous23-Aug-05 22:50 
GeneralRe: I want to ask for Visual Basic Pin
toxcct23-Aug-05 23:03
toxcct23-Aug-05 23:03 
GeneralVisual Basic Data Report Pin
VPNampoothiri23-Aug-05 22:09
VPNampoothiri23-Aug-05 22:09 
Generaloverriding ListView's Paint event Pin
grambowk23-Aug-05 21:48
grambowk23-Aug-05 21:48 
I've been trying to override the ListView's Paint event as I need to handle this event in my Windows Forms Project.

I've managed to get the Paint event to fire (as desired) but any items that I add to the ListView are not visible. I am completely clueless when it comes to custom draw controls but I suspect that as I'm overriding the paint event I'm going to need to draw the items I add.

Can anyone point me in the right direction in terms of what I need to do to be able to see the ListViewItems that I add to my custom ListView?

Here's the code that I'm using to expose the paint event.

Thanks,

Karl

<br />
Imports System<br />
Imports System.Drawing<br />
<br />
Public Class MyCustomListView<br />
    Inherits ListView<br />
<br />
    Public Sub New()<br />
<br />
        Me.SetStyle(ControlStyles.UserPaint, True)<br />
        Me.SetStyle(ControlStyles.DoubleBuffer, True)<br />
        Me.SetStyle(ControlStyles.AllPaintingInWmPaint, True)<br />
<br />
    End Sub 'New<br />
<br />
    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs)<br />
<br />
        MyBase.OnPaint(e)<br />
<br />
    End Sub 'OnPaint<br />
<br />
End Class 'MyCustomListView<br />

GeneralRe: overriding ListView's Paint event Pin
Dave Kreskowiak24-Aug-05 5:33
mveDave Kreskowiak24-Aug-05 5:33 
GeneralRe: overriding ListView's Paint event Pin
grambowk24-Aug-05 8:15
grambowk24-Aug-05 8:15 
Generalasp page Pin
ybasha23-Aug-05 17:00
ybasha23-Aug-05 17:00 
GeneralRe: asp page Pin
Rizwan Bashir24-Aug-05 2:08
Rizwan Bashir24-Aug-05 2:08 
GeneralVb.Net Small Project Pin
VBUser7723-Aug-05 14:55
VBUser7723-Aug-05 14:55 
GeneralRe: Vb.Net Small Project Pin
rwestgraham23-Aug-05 15:28
rwestgraham23-Aug-05 15:28 
QuestionApplication Login Suggestions? Pin
DEWright_CA23-Aug-05 12:58
DEWright_CA23-Aug-05 12:58 
AnswerRe: Application Login Suggestions? Pin
Rizwan Bashir24-Aug-05 2:14
Rizwan Bashir24-Aug-05 2:14 
QuestionObfuscation..of windows based vb.net app. causes the Crystal reports to error out? Pin
tciinc123-Aug-05 10:52
tciinc123-Aug-05 10:52 
Generaldebug from web service Pin
liquid_23-Aug-05 10:45
liquid_23-Aug-05 10:45 
GeneralUnhandled Exception - please help! Pin
dotolee23-Aug-05 9:13
dotolee23-Aug-05 9:13 
GeneralRe: Unhandled Exception - please help! Pin
Steve Pullan23-Aug-05 14:01
Steve Pullan23-Aug-05 14:01 
GeneralRe: Unhandled Exception - please help! Pin
dotolee24-Aug-05 2:57
dotolee24-Aug-05 2:57 
GeneralConversion of vb6 to .net web form Pin
KevinSDavis23-Aug-05 7:18
sussKevinSDavis23-Aug-05 7:18 
Generalnew table won't appear in Config Wizard Pin
DaveC42691323-Aug-05 6:32
DaveC42691323-Aug-05 6:32 
GeneralMouseHover Event Pin
directred23-Aug-05 5:37
directred23-Aug-05 5:37 
GeneralRe: MouseHover Event Pin
oakleaf23-Aug-05 5:42
oakleaf23-Aug-05 5:42 

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.