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

C#

 
GeneralRe: Wrapping Outlook's database... Pin
Heath Stewart12-Feb-04 11:31
protectorHeath Stewart12-Feb-04 11:31 
GeneralRe: Wrapping Outlook's database... Pin
profoundwhispers12-Feb-04 11:49
profoundwhispers12-Feb-04 11:49 
GeneralRe: Wrapping Outlook's database... Pin
Heath Stewart12-Feb-04 12:03
protectorHeath Stewart12-Feb-04 12:03 
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 
I've built a custom control that displays some objects as text (each text entry is NOT a System.Windows.Forms.Control).

So, after the OnPaint override is called, my control might look like this:

------------
| someText |
| hello    |
| blah     |
------------


All is well. However, when I write text past the client area of the control, like so:

------------
| someText |
| hello    |
| blah     |
------------
  more text
  even more


The last two lines of text that I've drawn are obviously not visible. So, in order to see the last 2 lines of text I've drawn on my control, I need to put in a scrollbar. Using a scrollbar, I can get the last two lines of text to display...however, only if I repaint the whole control, which means that every time I scroll, I need to repaint the control (which results in "flashing").

So, is there a better way to do this? I guess my real question is, what is the normal way to implement custom scrolling?

The graveyards are filled with indispensible men.
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 
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 

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.