473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

display a scrollable image larger than the screen?

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!

Nov 15 '05 #1
6 2663
Add the Picture box to a container (Form/Groupbox, etc) and set the
"AutoScroll" property to true.

-vJ

"allanc" <al****@digitalword.net> wrote in message
news:0a****************************@phx.gbl...
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!

Nov 15 '05 #2
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)..

-----Original Message-----
Add the Picture box to a container (Form/Groupbox, etc) and set the"AutoScroll" property to true.

-vJ

"allanc" <al****@digitalword.net> wrote in message
news:0a****************************@phx.gbl...
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!

.

Nov 15 '05 #3
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

"allanc" <al****@digitalword.net> wrote in message
news:06****************************@phx.gbl...
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)..

-----Original Message-----
Add the Picture box to a container (Form/Groupbox, etc)

and set the
"AutoScroll" property to true.

-vJ

"allanc" <al****@digitalword.net> wrote in message
news:0a****************************@phx.gbl...
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!

.

Nov 15 '05 #4
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.

-----Original Message-----
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/Rightkeys easily (it's the same as handling any other key)

-vJ

"allanc" <al****@digitalword.net> wrote in message
news:06****************************@phx.gbl...
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)..

>-----Original Message-----
>Add the Picture box to a container (Form/Groupbox,
etc) and set the
>"AutoScroll" property to true.
>
>-vJ
>
>"allanc" <al****@digitalword.net> wrote in message
>news:0a****************************@phx.gbl...
>> 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!
>>
>
>
>.
>

.

Nov 15 '05 #5
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

"allanc" <al****@digitalword.net> wrote in message
news:05****************************@phx.gbl...
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.

-----Original Message-----
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

"allanc" <al****@digitalword.net> wrote in message
news:06****************************@phx.gbl...
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)..
>-----Original Message-----
>Add the Picture box to a container (Form/Groupbox, etc) and set the
>"AutoScroll" property to true.
>
>-vJ
>
>"allanc" <al****@digitalword.net> wrote in message
>news:0a****************************@phx.gbl...
>> 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!
>>
>
>
>.
>

.

Nov 15 '05 #6
Doh!! (aargh)

Thanks vJ!!

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

-vJ

"allanc" <al****@digitalword.net> wrote in message
news:05****************************@phx.gbl...
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.

>-----Original Message-----
>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
>
>"allanc" <al****@digitalword.net> wrote in message
>news:06****************************@phx.gbl...
>> 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)..
>>
>>
>> >-----Original Message-----
>> >Add the Picture box to a container (Form/Groupbox,

etc)
>> and set the
>> >"AutoScroll" property to true.
>> >
>> >-vJ
>> >
>> >"allanc" <al****@digitalword.net> wrote in message
>> >news:0a****************************@phx.gbl...
>> >> 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!
>> >>
>> >
>> >
>> >.
>> >
>
>
>.
>

.

Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Roger Shrubber | last post by:
I have a page with images that the user can drag from one frame to another. I need them to see a "ghost image" of the image they are dragging, while the original stays put. I use the onmousemove...
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
1
by: robert10 | last post by:
Hi, Can someone please help me with finding some code to print an image which is larger than the screen? I am trying to print a black background which is exactly A4 in height and width, yet...
8
by: nickyeng | last post by:
I have written 3 files, i dont know whether i do it correctly or wrongly but somehow it compiled well and can run. My simple aim is to display the terrain.txt file into the terrain array, and then...
9
by: tshad | last post by:
This was posted before but the message got messed up (all NLs were stripped out for some reason). I have 2 labels that hold the name of different images on my .aspx page. <asp:Label ID="Logo"...
0
by: adubra | last post by:
Hi there, I am using a device context (DC) and a buffer to successfully draw to screen. However, when I update the DC at very high frame rate and drag the frame containing the image very quickly...
0
by: Rune Jacobsen | last post by:
Hi all, In my project I have a control (described in an earlier post) which basically consists of three "subcontrols": One big area where the vital data is displayed (scrollable, since it will...
10
by: cjparis | last post by:
Hello everyone. If anyone can give me a hand I would be gratefull Am doing a site which requires a moving element and have used DHTML to do it. Have a simple Browser detect script to sort IE...
2
by: studentofknowledge | last post by:
For some unknown reason ie is placing images I have in a div in a weird way. One image is overlapping another but this problem is not occuring in mozilla. I have looked at my code over and over again...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.