Click here to Skip to main content
16,014,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: want to know the coding for marksheet development project in VB 6 ...thanx PinPopular
Dave Kreskowiak17-Sep-08 17:09
mveDave Kreskowiak17-Sep-08 17:09 
QuestionAddHandler Arguments? Pin
Saul Johnson17-Sep-08 7:36
Saul Johnson17-Sep-08 7:36 
AnswerRe: AddHandler Arguments? Pin
Dave Kreskowiak17-Sep-08 8:07
mveDave Kreskowiak17-Sep-08 8:07 
GeneralRe: AddHandler Arguments? Pin
nlarson1117-Sep-08 9:58
nlarson1117-Sep-08 9:58 
GeneralRe: AddHandler Arguments? Pin
Dave Kreskowiak17-Sep-08 10:17
mveDave Kreskowiak17-Sep-08 10:17 
GeneralRe: AddHandler Arguments? Pin
nlarson1117-Sep-08 10:28
nlarson1117-Sep-08 10:28 
GeneralRe: AddHandler Arguments? Pin
Saul Johnson20-Sep-08 6:25
Saul Johnson20-Sep-08 6:25 
QuestionHow to stop FLICKERING -> Listview -> OwnderDraw Pin
jesus.online17-Sep-08 2:13
jesus.online17-Sep-08 2:13 
Hi,

i am writing on a small test-programm wich lists all available trailers on youtube ->

Have a look[^]

I am German so don´t Wonder.

So now the problem is, that i had to write die Draw_Item Event on myself to get this style.
And on every Mousemove, the listview redraws all of it´s Items. And it´s flickering all the time.

Heres my Draw_Item Event:

If e.ItemIndex = Me.SelectedIndex Then

    Dim brush As New Drawing2D.LinearGradientBrush(e.Bounds, Color.DodgerBlue, _
        Color.White, Drawing2D.LinearGradientMode.Horizontal)
    Try
        e.Graphics.FillRectangle(brush, e.Bounds)
    Finally
        brush.Dispose()
    End Try

    e.Graphics.DrawImage(ImageList1.Images(e.ItemIndex), e.Item.Bounds.X + 2, e.Item.Bounds.Y, 130, 96)
    e.Item.Text = "                                  " & Trim(e.Item.Text)

Else

    e.Graphics.DrawImage(ImageList1.Images(e.ItemIndex), e.Item.Bounds.X + 2, e.Item.Bounds.Y, 130, 96)
    e.Item.ImageIndex = e.ItemIndex
    e.Item.Text = "
                         " & Trim(e.Item.Text)
End If

e.DrawText()


What i tried:

- Setting the DoubleBuffer Property on True
- Suspend and Resume Layout while Drawing

and its still flickering, please help me!! im sitting on this for 24 hours now Sleepy | :zzz:
if you don´t know how to fix this, a downloadable listview with this style and no flickering would be also helpfull!

best regards
Julian
AnswerRe: How to stop FLICKERING -> Listview -> OwnderDraw Pin
Thomas Stockwell17-Sep-08 6:02
professionalThomas Stockwell17-Sep-08 6:02 
GeneralRe: How to stop FLICKERING -> Listview -> OwnderDraw Pin
jesus.online17-Sep-08 9:24
jesus.online17-Sep-08 9:24 
GeneralRe: How to stop FLICKERING -> Listview -> OwnderDraw Pin
jesus.online17-Sep-08 9:46
jesus.online17-Sep-08 9:46 
QuestionHow to find creation date of an exe Pin
AR Reddy17-Sep-08 1:57
AR Reddy17-Sep-08 1:57 
AnswerRe: How to find creation date of an exe Pin
Tom Deketelaere17-Sep-08 2:26
professionalTom Deketelaere17-Sep-08 2:26 
AnswerRe: How to find creation date of an exe Pin
Thomas Stockwell17-Sep-08 6:03
professionalThomas Stockwell17-Sep-08 6:03 
AnswerRe: How to find creation date of an exe Pin
User 81152324-Sep-08 19:01
User 81152324-Sep-08 19:01 
QuestionCopying Directory In Faster Way Pin
sumit703417-Sep-08 0:32
sumit703417-Sep-08 0:32 
AnswerRe: Copying Directory In Faster Way Pin
jzonthemtn17-Sep-08 7:09
jzonthemtn17-Sep-08 7:09 
GeneralRe: Copying Directory In Faster Way Pin
sumit703417-Sep-08 20:05
sumit703417-Sep-08 20:05 
QuestionMSFlexgrid (help me on my source code) Pin
barakulyo17-Sep-08 0:13
barakulyo17-Sep-08 0:13 
QuestionHow to show Text File in PrintPreviewDialog in vb.net (WinForm) Pin
kedarrkulkarni16-Sep-08 21:06
kedarrkulkarni16-Sep-08 21:06 
QuestionAnti Spyware Pin
pavanip16-Sep-08 20:46
pavanip16-Sep-08 20:46 
AnswerRe: Anti Spyware Pin
Ashfield16-Sep-08 21:10
Ashfield16-Sep-08 21:10 
AnswerRe: Anti Spyware Pin
Tom Deketelaere16-Sep-08 23:12
professionalTom Deketelaere16-Sep-08 23:12 
QuestionWeird TabControl binding error Pin
Mycroft Holmes16-Sep-08 16:37
professionalMycroft Holmes16-Sep-08 16:37 
QuestionPinvoke DLL Pin
SUperbom16-Sep-08 10:21
SUperbom16-Sep-08 10:21 

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.