473,378 Members | 1,658 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,378 software developers and data experts.

Panel Navigation

Dear friends,

I am a novice vb.net user and I am seeking some experts advice.

I placed a panel control onto a form, set the autoscroll property
(of the panel control) to true. Let's say The size of the panel control
is 100 by 100 ( height =100, width=100)

Then I draw some picture onto this panel control, the x range of the
picture is from 0 to 500 and the height of the picture is 600. Because
the panel size (100x100) is smaller than the picture size (500x600),
only portion of the picture is viewable
through this panel. With the autoscroll on, I can drag the scroll bar
to see every part of the picture ( not at the same time though )

Now here is my question. Is there a way ( or property )that I can
use to adjust the zoom ratio ? for example, I can see 100% of the
picture at a samller scale, or a 10% if the picture (partitially) at a
larger scale ? By setting the zoom ratio, I do not need to re-plot the
picture every time I zooming or zoom out.

A second question is also regarding to the viewing of the picture.
Is there a way to (progarmatically) panning the view point ?

Combing the above two questions, I am asking, for the given panel
size (100x100), is there a way to view, for example,
the portion of pictures enclosed by a rectangular with coordinate
(x1,y1) and (x2,y2) as its diagonal, where x2-x1 may be grater than
100, y2-y1 may also be greater than 100 ?

I believe these are very basic questions and your help is
appreciated.

Nov 21 '05 #1
1 1810
Hi Larry,

I believe you will achieve what you want by using the SizeMode method of the
picturebox. This method works with the image wrt the size of the picturebox.
The options you will use are either AutoSize or Stretch Image. I guess you
can use simple maths if you want to change the size of the picturebox wrt
the panel.

HTH,

Phil

"Larry" <lc*********@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Dear friends,

I am a novice vb.net user and I am seeking some experts advice.

I placed a panel control onto a form, set the autoscroll property
(of the panel control) to true. Let's say The size of the panel control
is 100 by 100 ( height =100, width=100)

Then I draw some picture onto this panel control, the x range of the
picture is from 0 to 500 and the height of the picture is 600. Because
the panel size (100x100) is smaller than the picture size (500x600),
only portion of the picture is viewable
through this panel. With the autoscroll on, I can drag the scroll bar
to see every part of the picture ( not at the same time though )

Now here is my question. Is there a way ( or property )that I can
use to adjust the zoom ratio ? for example, I can see 100% of the
picture at a samller scale, or a 10% if the picture (partitially) at a
larger scale ? By setting the zoom ratio, I do not need to re-plot the
picture every time I zooming or zoom out.

A second question is also regarding to the viewing of the picture.
Is there a way to (progarmatically) panning the view point ?

Combing the above two questions, I am asking, for the given panel
size (100x100), is there a way to view, for example,
the portion of pictures enclosed by a rectangular with coordinate
(x1,y1) and (x2,y2) as its diagonal, where x2-x1 may be grater than
100, y2-y1 may also be greater than 100 ?

I believe these are very basic questions and your help is
appreciated.

Nov 21 '05 #2

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

Similar topics

1
by: Emma Middlebrook | last post by:
Hi, I've created a form that has basic navigation functionality. There is a panel on the main form that contains several UserControl form objects. I've added all the forms to the control...
2
by: kevin | last post by:
hi, all it seems that smartnavigation has problem with the hide/show panel in the aspx page, I have three panel wih back/next buttons, the first two page works fine, but at the last page,...
1
by: Troy | last post by:
Hi, I have buttons in a user control for navigation calling usercontrols into a panel on the base page. When I click the submit button on a user control contained in the panel, the usercontrol...
3
by: stotty | last post by:
Hello. I am developing an application that uses Panels to guide the user through a form they must fill out. Each Panel contains different controls, such as Text Boxes and Drop Down Lists. When...
2
by: BJ | last post by:
I had this crazy idea. We have an existing application that could use some rework. I was going to redo the application (currently ASP.Net 1.1) using ASP.Net 2.0: Master page with Header,...
1
by: =?Utf-8?B?QW50?= | last post by:
Hi, I'd like to include a sliding/ hide navigation panel, the likes of what you see in Visual studio. Is there a short cut tool I can use for this? If not, how would this be best done? With...
4
hemantbasva
by: hemantbasva | last post by:
We have designed an aspx page having five ajax tab in it. the data of first four are designed on page whereas for the fifth tab it renders a user control named MYDOMAIN. in the tab container's even...
9
by: ridgedale | last post by:
I have a test site setup at: http://ridgedale.powweb.com/THS/sbx_index.php and I am having trouble trying to resolve an issue relating to the scrolling navigation panel. When the user scrolls...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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...

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.