473,466 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Making a scroll

Is there a way that when I show some fields below that don't fit in the
screen, it automatically makes a scroll down event so the user doesn't have
to scroll down the page by his own?

Thanks in advance
Nov 18 '05 #1
4 1346
Hi Marlene,

You'll want to wrap the item inside a <div> tag and give the div a style
that includes the overflow property:

http://msdn.microsoft.com/workshop/a...s/overflow.asp

"The following examples use the overflow attribute and the overflow property
to manage content of the object.
This example uses an inline style to automatically adjust itself to
overflowing content when the page is loaded."

<DIV ID=oDiv STYLE="width: 200px; height: 200px; overflow: auto;">
Put your content in here
</DIV>
"Marlene A. Roman" <pd*****@nospam.wdsinc.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
Is there a way that when I show some fields below that don't fit in the
screen, it automatically makes a scroll down event so the user doesn't
have
to scroll down the page by his own?

Thanks in advance


Nov 18 '05 #2
Yes but the property "auto" adds the scrolling bar only when necessary, but
what I need to do is everytime the user presses a "select" buttoncolumn in
my grid I execute a sub that makes visible=true a pannel that shows
information. In this moment I need to make a scroll down. I mean the screen
moves up alone so the user doesn't need to use the mouse and scroll down. Is
this possible?

Thanks so much

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:u7**************@tk2msftngp13.phx.gbl...
Hi Marlene,

You'll want to wrap the item inside a <div> tag and give the div a style
that includes the overflow property:

http://msdn.microsoft.com/workshop/a...s/overflow.asp
"The following examples use the overflow attribute and the overflow property to manage content of the object.
This example uses an inline style to automatically adjust itself to
overflowing content when the page is loaded."

<DIV ID=oDiv STYLE="width: 200px; height: 200px; overflow: auto;">
Put your content in here
</DIV>
"Marlene A. Roman" <pd*****@nospam.wdsinc.com> wrote in message
news:OM**************@TK2MSFTNGP10.phx.gbl...
Is there a way that when I show some fields below that don't fit in the
screen, it automatically makes a scroll down event so the user doesn't
have
to scroll down the page by his own?

Thanks in advance

Nov 18 '05 #3
He Marlene,

Sorry, I haven't grasped what this should look like.

Could you post some code that doesn't work with a further explanation?

Ken

"Marlene A. Roman" <pd*****@nospam.wdsinc.com> wrote in message
news:O%******************@TK2MSFTNGP12.phx.gbl...
Yes but the property "auto" adds the scrolling bar only when necessary,
but
what I need to do is everytime the user presses a "select" buttoncolumn in
my grid I execute a sub that makes visible=true a pannel that shows
information. In this moment I need to make a scroll down. I mean the
screen
moves up alone so the user doesn't need to use the mouse and scroll down.
Is
this possible?

Thanks so much


Nov 18 '05 #4
Yes, I have a datagrid and a column of type Button Column. When the user
clicks that colum the program executes a sub. The sub has the following:
AddUserpanel.Visible = True

and inside the AddUserpanel I have some textboxes that show information
about the register he selected.

This userpanel is at the bottom of the screen and the user needs to press
the scroll bar in order to see this information. They want the program to do
this scroll by itself.

Sorry about asking so many times but this is important. Is there is no way
to do it please tell me.

Thanks

"Ken Cox [Microsoft MVP]" <BA************@sympatico.ca> wrote in message
news:uo**************@TK2MSFTNGP09.phx.gbl...
He Marlene,

Sorry, I haven't grasped what this should look like.

Could you post some code that doesn't work with a further explanation?

Ken

"Marlene A. Roman" <pd*****@nospam.wdsinc.com> wrote in message
news:O%******************@TK2MSFTNGP12.phx.gbl...
Yes but the property "auto" adds the scrolling bar only when necessary,
but
what I need to do is everytime the user presses a "select" buttoncolumn in my grid I execute a sub that makes visible=true a pannel that shows
information. In this moment I need to make a scroll down. I mean the
screen
moves up alone so the user doesn't need to use the mouse and scroll down. Is
this possible?

Thanks so much

Nov 18 '05 #5

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

Similar topics

8
by: slawek | last post by:
Hi i have following stylesheet: ..linklist { width: 100%; font-size: 75%; background: #EEEEEE; margin: 5px; height: 300px; overflow: auto;
5
by: MacKenzieMouse | last post by:
Is there an easy way to have the page scroll to the next button? When I populate a drop down list box, I have to use the arrow key or the mouse to scroll down. I would like for the page to be...
8
by: pmud | last post by:
Hi, I have 2 questions: 1. I have an editable data grid with 21 columns. I need to edit only 2 cloumns in this data grid. But when the grid is displayed in Edit mode, all the columns show long...
0
by: Greg | last post by:
I've made a datagrid multiline (for anyone interested, I used an adaptation of the code at http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp). This has introduced a very serious issue: the vertical...
1
by: davidr | last post by:
Hi, I am using Divs with CSS to setup a layout for a site. I am using the <Div>s and style sheets below. I want the TopMenu to go across the entire top of the browser. It does go across the...
6
by: isaac2004 | last post by:
hi am making a webpage for a client that has a lot of text on thier site, i have a photoshop template that i created and i want the text to fit in a small part of template, can anybody point me in...
6
by: frankenstein | last post by:
I've not seen any real sollutions to this yet. I found something similar on this forum but the posted sollutions didn't work. I would like to make a drag to scroll for my blog, using JS. So far I...
2
by: sdevgray | last post by:
Is it possible to make the scroll bar larger on a Combo Box ? The reason I want to do this is so it can be used on a touch screen. I have a list of names linked to the Combo Box, I want a large...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.