Click here to Skip to main content
15,890,982 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hard disk number Pin
jhaga11-May-03 6:07
professionaljhaga11-May-03 6:07 
GeneralRe: Hard disk number Pin
BoudewijnEctor12-May-03 10:35
BoudewijnEctor12-May-03 10:35 
GeneralRe: Hard disk number Pin
Bo Hunter12-May-03 14:09
Bo Hunter12-May-03 14:09 
GeneralAccessing File Properties "Summary "Tab Info Pin
Grant11110-May-03 9:13
Grant11110-May-03 9:13 
GeneralRe: Accessing File Properties "Summary "Tab Info Pin
Stephane Rodriguez.10-May-03 19:26
Stephane Rodriguez.10-May-03 19:26 
GeneralAutoScroll ruin GDI Pin
israeli10-May-03 7:25
israeli10-May-03 7:25 
GeneralRe: AutoScroll ruin GDI Pin
leppie11-May-03 4:32
leppie11-May-03 4:32 
GeneralRe: AutoScroll ruin GDI Pin
Wesner Moise11-May-03 8:58
Wesner Moise11-May-03 8:58 
I have run into that before... You need to either apply a translation transform or take into account the offsets of AutoScrollPosition. (There is a bug in AutoScrollPosition; the AutoScrollPosition requires a positive value if you set it; but it always returns a negative value when you read it.) Just add the values from AutoScrollPosition to all the coordinates in you Paint routine.

The size of the scrollbars are determined by the bounding area of all the child controls contained within the control. TO change this, you can set AutoScrollMinSize to the actual size you want.

What is happen is that Win32 ScrollWindow (or whatever it is called) is being called, and the invalidated region is then asked to paint itself, but without including the offset position.

In addition to the above, there should be some OnScroll event (I don't remember the name). Try calling Update() within the event to perform realtime updating as you scroll. This removes the redrawing delay that occurs when they user is continually dragging the scrollbar, and defering any paint events from being generated.

Just doing invalidate() doesn't work because it flickers--also, it doesn't take into account the scroll position, so your client area never actually scrolls.

Thanks,
Wes
General.NET decompilers Pin
Stephane Rodriguez.10-May-03 5:00
Stephane Rodriguez.10-May-03 5:00 
GeneralRe: .NET decompilers Pin
David Stone10-May-03 5:10
sitebuilderDavid Stone10-May-03 5:10 
GeneralRe: .NET decompilers Pin
leppie10-May-03 6:48
leppie10-May-03 6:48 
GeneralRe: .NET decompilers Pin
Nick Parker11-May-03 4:13
protectorNick Parker11-May-03 4:13 
GeneralRe: .NET decompilers Pin
Stephane Rodriguez.11-May-03 4:40
Stephane Rodriguez.11-May-03 4:40 
GeneralRe: .NET decompilers Pin
Nick Parker11-May-03 17:02
protectorNick Parker11-May-03 17:02 
GeneralDelegate Problem Pin
Steve Severance10-May-03 4:05
Steve Severance10-May-03 4:05 
GeneralRe: Delegate Problem Pin
leppie10-May-03 6:56
leppie10-May-03 6:56 
QuestionWhere can I find installutil.exe ? Pin
nahumtakum10-May-03 3:29
nahumtakum10-May-03 3:29 
AnswerRe: Where can I find installutil.exe ? Pin
Heinz R. Vahlbruch10-May-03 7:27
Heinz R. Vahlbruch10-May-03 7:27 
GeneralRe: Where can I find installutil.exe ? Pin
nahumtakum10-May-03 12:18
nahumtakum10-May-03 12:18 
GeneralRe: Where can I find installutil.exe ? Pin
Heinz R. Vahlbruch10-May-03 20:21
Heinz R. Vahlbruch10-May-03 20:21 
GeneralRe: Where can I find installutil.exe ? Pin
Anonymous13-May-03 11:25
Anonymous13-May-03 11:25 
QuestionHow to Filter a database with the help of a combobox ? Pin
geraldschaller10-May-03 2:28
geraldschaller10-May-03 2:28 
GeneralIrc Client samples Pin
WillemM10-May-03 0:04
WillemM10-May-03 0:04 
GeneralRe: Irc Client samples Pin
leppie10-May-03 3:23
leppie10-May-03 3:23 
GeneralRe: Irc Client samples Pin
Andy Smith10-May-03 8:24
Andy Smith10-May-03 8:24 

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.