Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Custom Listbox' scrollbar painting

Custom Listbox' scrollbar painting

Scheduled Pinned Locked Moved C#
csharpwpfwinformsquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    op75
    wrote on last edited by
    #1

    Hi, Is there a way to override the painting of a WinForms listbox's internal scrollbar ? (yes, WPF may be the solution, but I can't use it in my current project) I've already done some researches but I didn't manage to find any solution :(( I think that the best solution would be to paint inside the WndProc method, but I don't know which message has to be intercepted... May someone give me some advice or just a little tip ? :) Thanks in advance

    RaviBeeR 1 Reply Last reply
    0
    • O op75

      Hi, Is there a way to override the painting of a WinForms listbox's internal scrollbar ? (yes, WPF may be the solution, but I can't use it in my current project) I've already done some researches but I didn't manage to find any solution :(( I think that the best solution would be to paint inside the WndProc method, but I don't know which message has to be intercepted... May someone give me some advice or just a little tip ? :) Thanks in advance

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #2

      See this[^] article. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      O 1 Reply Last reply
      0
      • RaviBeeR RaviBee

        See this[^] article. /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        O Offline
        O Offline
        op75
        wrote on last edited by
        #3

        Thanks for your link Ravi, but this component will not replace the internal scrollbar of the listbox... :( It could be a solution to create my own usercontrol with a listbox and such a scrollbar, but I'll have to rewrite all listbox's methods to have my usercontrol having the same behavior as a classic listbox ;)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups