display a scrollable image larger than the screen?

  • Thread starter Thread starter allanc
  • Start date Start date
A

allanc

i tried using a borderless form + picturebox, which works
fine for dimensions smaller than the actual screen
dimensions, but for larger sizes the window seems to
clip. programs like acdsee seem to have no trouble doing
this, how??

Thanks in advance!
 
Add the Picture box to a container (Form/Groupbox, etc) and set the
"AutoScroll" property to true.

-vJ
 
Ok, this seems very promising. but the image is still not
responsive to arrow keys. if i size the window down i
can see and operate the scroll bars-- progress-- do i now
need to manually get the arrow key events
to "autoscroll"? (also i remember always having trouble
getting the arrow keys specifically, ctrl-arrow came
through but arrows not)..
 
Well, what you need to do is, let the main window handle the key strokes.

But if you want, you can capture KeyDown and handle the Up/Down/Left/Right
keys easily (it's the same as handling any other key)

-vJ
 
Thanks Vijaye, got it.

The only thing that doesnt jibe is where the arrow keys
go in my main form-- the arrows end up tabbing between
controls on my main form.. as it is now, even with
KeyPreview set (or not) i'm not currently seeing
Keys.Right and Keys.Left in the event handler, although
the same line of code sees them just fine if e.Shift or
e.Alt are true.
 
In your form, override "IsInputKey" method and return true for the keys you
are interested in. This will make the form notify you for all the keys you
are interested in.

-vJ
 
Doh!! (aargh)

Thanks vJ!!

-----Original Message-----
In your form, override "IsInputKey" method and return true for the keys you
are interested in. This will make the form notify you for all the keys you
are interested in.

-vJ




.
 
Back
Top