Making a scroll

  • Thread starter Thread starter Marlene A. Roman
  • Start date Start date
M

Marlene A. Roman

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
 
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/author/dhtml/reference/properties/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>
 
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
 
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
 
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
 
Back
Top