473,569 Members | 2,901 Online
Bytes | Software Development & Data Engineering Community
+ 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 1356
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******** ******@TK2MSFTN GP10.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******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP10.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%******** **********@TK2M SFTNGP12.phx.gb l...
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.Vi sible = 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******** ******@TK2MSFTN GP09.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%******** **********@TK2M SFTNGP12.phx.gb l...
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
4090
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
2621
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 positioned at or near the bottom. I have turned smart navigation on. That helps, but still isn't enough. Thanks
8
2397
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 text boxes whichmakes the user to SCROLL a lot. I need only these 2 cloumns to be displayed in Edit mode. Is that possible & how? 2. Also, even...
0
1511
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 scroll bar assumes that all row heights are the same, as the designers of the datagrid seemed to not want to cater for the fact that a datagrid...
1
5663
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 entire top, but let say my screen resolution is 800x600 and the "Content" Div forces scroll bars for the user to scroll to the right to see an object...
6
1681
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 the direction of a quick scroll bar that doesnt have any bells and whisltes, thanks for the help
6
2523
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 have written the following (for use in Firefox): document.onmousedown = function(){ var e = arguments||event; var x = e.pageX; var y =...
2
10915
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 scroll bar that can be used by a finger ! If not can anybody suggest an alternative ? Many thanks Stuart
0
7605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7917
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7665
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6277
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5217
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2105
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 we have to send another system
0
933
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.