Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
AnswerRe: ArrayList Delete Both Identical Strings? Pin
Stefan Troschuetz19-Aug-06 22:11
Stefan Troschuetz19-Aug-06 22:11 
QuestionInvalidate wont actually do what I need to do Pin
Ista19-Aug-06 12:29
Ista19-Aug-06 12:29 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 13:22
Guffa19-Aug-06 13:22 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista19-Aug-06 14:00
Ista19-Aug-06 14:00 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 14:21
Guffa19-Aug-06 14:21 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista19-Aug-06 16:17
Ista19-Aug-06 16:17 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 22:02
Guffa19-Aug-06 22:02 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista20-Aug-06 6:52
Ista20-Aug-06 6:52 
How do you set it on an element? I dont see any property or method to do that.

The only thing that exists is a bitmap and I only want to scroll up and down because its huge.

A background might help.

I am making a map editor(level editor) for gameboy games. The map is 1024x1024 of 8x8 pixel squared. So I created a bitmap thats gigantic and I want to use the scroll bars to go to different parts of the bitmap. Then when I finished I will save the bitmap to a file.

The drag and drop and Invalidate work fine if I haven't scrolled.

But, as soon as I scroll the contents they get all messed up. So I need to refresh them. But, when Refresh or Invalidate is called the paint doesn't keep the position. I tried setting the AutoScrollPosition at the beginning of paint and that didn't work either.

I guess the solution is to override invalidate and hook the scrolling events.

I'm not sure and I don't do much winform devewlopment so I'm not sure.

Thanks for taking the time.
Nick

--------------------------------------------------------

1 line of code equals many bugs. So don't write any!!

My mad coder blog

GeneralRe: Invalidate wont actually do what I need to do Pin
Guffa20-Aug-06 14:06
Guffa20-Aug-06 14:06 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista20-Aug-06 16:15
Ista20-Aug-06 16:15 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista21-Aug-06 8:07
Ista21-Aug-06 8:07 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa22-Aug-06 8:37
Guffa22-Aug-06 8:37 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista22-Aug-06 9:07
Ista22-Aug-06 9:07 
GeneralRe: Invalidate wont actually do what I need to do Pin
Guffa23-Aug-06 9:54
Guffa23-Aug-06 9:54 
AnswerRe: Invalidate wont actually do what I need to do Pin
Nader Elshehabi20-Aug-06 1:28
Nader Elshehabi20-Aug-06 1:28 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista20-Aug-06 6:44
Ista20-Aug-06 6:44 
QuestionError in report ... [modified] Pin
mostafa_h19-Aug-06 9:25
mostafa_h19-Aug-06 9:25 
QuestionCancelEventHandler? Pin
Dominik Reichl19-Aug-06 8:15
Dominik Reichl19-Aug-06 8:15 
AnswerRe: CancelEventHandler? Pin
leppie19-Aug-06 11:00
leppie19-Aug-06 11:00 
GeneralRe: CancelEventHandler? Pin
Dominik Reichl19-Aug-06 22:35
Dominik Reichl19-Aug-06 22:35 
GeneralRe: CancelEventHandler? Pin
Vitaliy Tsvayer20-Aug-06 1:47
Vitaliy Tsvayer20-Aug-06 1:47 
GeneralRe: CancelEventHandler? Pin
leppie20-Aug-06 2:21
leppie20-Aug-06 2:21 
GeneralRe: CancelEventHandler? Pin
Vitaliy Tsvayer20-Aug-06 3:20
Vitaliy Tsvayer20-Aug-06 3:20 
GeneralRe: CancelEventHandler? Pin
leppie20-Aug-06 3:35
leppie20-Aug-06 3:35 
Questionhelp me Pin
Tahir Shah19-Aug-06 7:16
Tahir Shah19-Aug-06 7:16 

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.