Click here to Skip to main content
15,914,410 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: calling back a previous form.. Pin
icowa20-Jun-05 19:14
icowa20-Jun-05 19:14 
GeneralRe: calling back a previous form.. Pin
icowa20-Jun-05 19:18
icowa20-Jun-05 19:18 
GeneralRe: calling back a previous form.. Pin
Christian Graus20-Jun-05 19:18
protectorChristian Graus20-Jun-05 19:18 
GeneralRe: calling back a previous form.. Pin
icowa20-Jun-05 19:21
icowa20-Jun-05 19:21 
GeneralRe: calling back a previous form.. Pin
Christian Graus20-Jun-05 19:23
protectorChristian Graus20-Jun-05 19:23 
GeneralRe: calling back a previous form.. Pin
icowa20-Jun-05 19:24
icowa20-Jun-05 19:24 
GeneralRe: calling back a previous form.. Pin
lespaul3621-Jun-05 11:24
lespaul3621-Jun-05 11:24 
GeneralColumn Color Change Pin
lespaul3620-Jun-05 9:31
lespaul3620-Jun-05 9:31 
I want to change the back color of a column in a listview control. I thought I was on the right track by capturing the backgrounderase message and then using this routine

Try<br />
            If Not Me.mcolSelectedCol.Equals(Nothing) And Not e.Header.Equals(Nothing) And Me.View = View.Details Then<br />
                If Me.clv1.HeaderHandle.ToInt32 <> 0 Then<br />
                    'Dim int As Integer = SendMessage(Me.clv1.HeaderHandle, Win32.WindowsMessages.HDM_GETITEMCOUNT, 0, 0)<br />
                    Dim rec As Win32.RECT = Me.arrRects(mintCurColumn)<br />
                    Dim sz As New Size(rec.right - rec.left, rec.bottom - rec.top)<br />
                    Dim g As Graphics = Graphics.FromHdc(e.Msg.WParam)<br />
                    g.FillRectangle(New SolidBrush(Color.Red), rec.left, Top, rec.right - rec.left, Height)<br />
                End If<br />
<br />
            End If<br />
        Catch ex As Exception<br />
<br />
        End Try


But no luck as of yet. I have some c# code, but I can't seem to get through all the extra stuff to just pull this code. Any help would be great.

TIA
GeneralRe: Column Color Change Pin
lespaul361-Aug-05 11:38
lespaul361-Aug-05 11:38 
GeneralSearch Record Pin
ADY00720-Jun-05 8:45
ADY00720-Jun-05 8:45 
GeneralRe: Search Record Pin
Christian Graus20-Jun-05 14:52
protectorChristian Graus20-Jun-05 14:52 
GeneralRe: Search Record Pin
Het210921-Jun-05 2:02
Het210921-Jun-05 2:02 
GeneralString Manipulation: Insert a character (or two...) Pin
Brad Fackrell20-Jun-05 7:59
Brad Fackrell20-Jun-05 7:59 
GeneralRe: String Manipulation: Insert a character (or two...) Pin
Dave Kreskowiak20-Jun-05 9:24
mveDave Kreskowiak20-Jun-05 9:24 
GeneralRe: String Manipulation: Insert a character (or two...) Pin
Brad Fackrell20-Jun-05 10:07
Brad Fackrell20-Jun-05 10:07 
GeneralDataGrid Question Pin
directred20-Jun-05 5:24
directred20-Jun-05 5:24 
GeneralRe: DataGrid Question Pin
toxcct20-Jun-05 6:11
toxcct20-Jun-05 6:11 
QuestionHow to draw lines then undo ??? Pin
Ray Guan20-Jun-05 4:48
Ray Guan20-Jun-05 4:48 
AnswerRe: How to draw lines then undo ??? Pin
Anonymous20-Jun-05 9:03
Anonymous20-Jun-05 9:03 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:00
Ray Guan20-Jun-05 15:00 
AnswerRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 14:55
protectorChristian Graus20-Jun-05 14:55 
GeneralRe: How to draw lines then undo ??? Pin
lespaul3620-Jun-05 15:12
lespaul3620-Jun-05 15:12 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:22
protectorChristian Graus20-Jun-05 15:22 
GeneralRe: How to draw lines then undo ??? Pin
Ray Guan20-Jun-05 15:36
Ray Guan20-Jun-05 15:36 
GeneralRe: How to draw lines then undo ??? Pin
Christian Graus20-Jun-05 15:39
protectorChristian Graus20-Jun-05 15:39 

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.