Click here to Skip to main content
15,889,520 members
Home / Discussions / C#
   

C#

 
GeneralListView Pin
Gary Kirkham12-Feb-04 10:20
Gary Kirkham12-Feb-04 10:20 
GeneralRe: ListView Pin
Heath Stewart12-Feb-04 11:15
protectorHeath Stewart12-Feb-04 11:15 
GeneralRe: ListView Pin
Gary Kirkham12-Feb-04 13:46
Gary Kirkham12-Feb-04 13:46 
GeneralRe: ListView Pin
Heath Stewart12-Feb-04 15:37
protectorHeath Stewart12-Feb-04 15:37 
GeneralCustom scrolling on control Pin
Judah Gabriel Himango12-Feb-04 10:00
sponsorJudah Gabriel Himango12-Feb-04 10:00 
GeneralRe: Custom scrolling on control Pin
Heath Stewart12-Feb-04 11:09
protectorHeath Stewart12-Feb-04 11:09 
GeneralRe: Custom scrolling on control Pin
Judah Gabriel Himango12-Feb-04 15:01
sponsorJudah Gabriel Himango12-Feb-04 15:01 
GeneralRe: Custom scrolling on control Pin
Heath Stewart12-Feb-04 15:34
protectorHeath Stewart12-Feb-04 15:34 
By inheritting from ScrollableControl, you at least get some of the functionality you need, but by no means all of it.

Also, double-buffering is not an alternative to overriding WndProc. Control.SetStyle is something you'd call in your constructor or some other initialization code to enable the three styles that cause .NET to call your painting routines in a separate thread to paint in the back buffer, then to paint that on the screen.

Overriding WndProc is necessary to implement the scrolling. These two things have nothing to do with each other (although you could enabled double-buffering in WndProc yourself, but then you have to handle the back and screen buffers yourself - I'd recommend the latter method).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Custom scrolling on control Pin
Heath Stewart12-Feb-04 11:11
protectorHeath Stewart12-Feb-04 11:11 
GeneralBest algorithm... Pin
profoundwhispers12-Feb-04 9:09
profoundwhispers12-Feb-04 9:09 
GeneralRe: Best algorithm... Pin
Heath Stewart12-Feb-04 11:04
protectorHeath Stewart12-Feb-04 11:04 
GeneralWriting to app.config... Pin
profoundwhispers12-Feb-04 8:34
profoundwhispers12-Feb-04 8:34 
GeneralRe: Writing to app.config... Pin
Heath Stewart12-Feb-04 8:54
protectorHeath Stewart12-Feb-04 8:54 
GeneralRe: Writing to app.config... Pin
profoundwhispers12-Feb-04 9:10
profoundwhispers12-Feb-04 9:10 
Generalfinding bad resource strings on compile Pin
elena1234512-Feb-04 8:30
elena1234512-Feb-04 8:30 
GeneralRe: finding bad resource strings on compile Pin
leppie12-Feb-04 8:44
leppie12-Feb-04 8:44 
GeneralRe: finding bad resource strings on compile Pin
elena1234512-Feb-04 8:56
elena1234512-Feb-04 8:56 
GeneralRe: finding bad resource strings on compile Pin
Kentamanos12-Feb-04 9:05
Kentamanos12-Feb-04 9:05 
GeneralRe: finding bad resource strings on compile Pin
Heath Stewart12-Feb-04 8:59
protectorHeath Stewart12-Feb-04 8:59 
GeneralInvoke Method Compact Framework Pin
MobileLover12-Feb-04 7:52
MobileLover12-Feb-04 7:52 
GeneralRe: Invoke Method Compact Framework Pin
leppie12-Feb-04 8:47
leppie12-Feb-04 8:47 
GeneralRe: Invoke Method Compact Framework Pin
MobileLover12-Feb-04 10:43
MobileLover12-Feb-04 10:43 
GeneralWaiting for a form box to finish Pin
spindar12-Feb-04 6:02
spindar12-Feb-04 6:02 
GeneralRe: Waiting for a form box to finish Pin
Mazdak12-Feb-04 6:06
Mazdak12-Feb-04 6:06 
GeneralRe: Waiting for a form box to finish Pin
Nick Parker12-Feb-04 6:13
protectorNick Parker12-Feb-04 6:13 

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.