473,804 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrollable Container

Is it possible to create a Panel with a vertical scrollbar?

Thanks
Rob
Nov 17 '05 #1
3 5097
a Panel is a div. Therefore, you can create a scrolling div by adding one of
a couple of styles:

overflow-x:scroll or overflow-x:auto - Creates a horizontal scrollbar
overflow-y:scroll or overflow-y:auto - Creates a vertical scrollbar

Notes: "scroll" always puts in the scrollbar. "auto" puts it in when the
text overflows the size of the div. Also, if you use "overflow-x" you must
set the width style property, and if you use "overflow-y" you must set the
height style property, or it will not work.

Example:

<div runat="server" id="Div1" style="width:20 0px;
height:200px;ov erflow-x=auto;overflow-y=scroll;"></div>

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Robert" <ro*******@gmx. com> wrote in message
news:09******** *************** *****@phx.gbl.. .
Is it possible to create a Panel with a vertical scrollbar?

Thanks
Rob

Nov 17 '05 #2
The method Kevin mentioned is the preferred method in my opinion, but
IFrames are also worth mentioning. This of course involves hosting a second
page inside your first. This has advantages and disadvantages.
Here's more info:
http://msdn.microsoft.com/workshop/a...cts/IFRAME.asp

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Robert" <ro*******@gmx. com> wrote in message
news:09******** *************** *****@phx.gbl.. .
Is it possible to create a Panel with a vertical scrollbar?

Thanks
Rob

Nov 17 '05 #3
Edison Zhou
1 New Member
Kevin
The horizontal scroll bar is dim and not active when I create a horizontal scrollbar using the way you mentioned.
Do you know why?

Thank you!

Edison Zhou




a Panel is a div. Therefore, you can create a scrolling div by adding one of
a couple of styles:

overflow-x:scroll or overflow-x:auto - Creates a horizontal scrollbar
overflow-y:scroll or overflow-y:auto - Creates a vertical scrollbar

Notes: "scroll" always puts in the scrollbar. "auto" puts it in when the
text overflows the size of the div. Also, if you use "overflow-x" you must
set the width style property, and if you use "overflow-y" you must set the
height style property, or it will not work.

Example:

<div runat="server" id="Div1" style="width:20 0px;
height:200px;ov erflow-x=auto;overflow-y=scroll;"></div>

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Robert" <robert_dx@gmx. com> wrote in message
news:097701c33f 0a$f4799f20$a10 1280a@phx.gbl.. .[color=blue]
> Is it possible to create a Panel with a vertical scrollbar?
>
> Thanks
> Rob[/color]
Jun 30 '06 #4

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

Similar topics

7
11654
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header | +---------------+ | body | | (scrollable) | +---------------+ | footer |
3
5045
by: SebiF | last post by:
Hello, It might have been asked before but since I could not find a reference here's my qustion: I want a liquid layout similar to this one: http://www.alistapart.com/d/negativemargins/ex5.htm but with the footer fixed at the bottom and the content in a scrollable area.
25
36372
by: Michael Schuerig | last post by:
I'm trying to do something seemingly very simple, but it's brought me close to crushing my head on the keyboard. All I want is a table where the head row is fixed and the body columns below are scrollable (with the ordinary scrollbars, no less). Whatever I try, the columns in the head and the body aren't aligned; the widths are computed independently which gives a completely ragged look. Michael --
5
2161
by: Brian Henry | last post by:
Hello, I want to make a control that has a scrollable Gantt type display (not really one but will look similar to one) this is going to be custom drawn (i already have the drawing procedure completed for the overriden onpaint event) but the problem is this can be a very long scrollable viewport (part that scrolls inside the control) while the control will be relatively 800x600 in size)... i tried to do this with a panel scrolling inside...
0
1000
by: Ethan S. | last post by:
Hi everyone, I'm working on a small little project of mine and got stuck trying to add my own usercontrol into a scrollable object. For example, when a download is initiated under Mozilla Firefox, an entry will be added into the download window's panel/groupbox/whatever that is. Please advise on what object/control to use to accomplish this task. I have considered using a panel, but the panel control does not provide automatic...
1
4032
by: Ronald S. Cook | last post by:
I want to have controls on my Windows form app that I can scroll to see more. I don't want to scroll the whole form, just the container holding the controls. What type of container should I use to do this? Thanks, Ron
2
4095
by: Ben H | last post by:
Hello all I'm using a listview in my app but I want to scroll the listview programatically as I hate the look of the standard scrollbar. So, the listview is scrolled programatically using ensurevisible, ie the listview shows a maximum of 6 items and if I want to scroll down one I use the code... listview.ensurevisible(listview.TopItem.Index + 6)
1
16981
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot examples I found on the web. Works in IE and mozilla. http://www.imaputz.com/cssStuff/bigFourVersion.html
0
933
by: imranf | last post by:
Hello, I want to use Visual Studio like toolbar (which is scrollable and has tabs) in my C# application. It looks like a container which can have controls. If you don't understand what I'm refering to, please consider the control that we use to drag components on the WinForms in VS.NET IDE and set database connections. Another example is Error List, Watch Window that are also dockable. I've tried exploring and couldn't find any. Any idea?...
4
2303
by: crazychrisy54 | last post by:
Hi there, I am new to JavaScript and wonder if it could be used to solve my problem, any help would be much appreciated! I have a html web page which contains a table on the left hand side and image on the right, both of which are updating. As the image updates however it gets bigger and starts to look messy next to the constant sized updating table. I just wondered is it possible to use java script to place the ever growing image...
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9577
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9140
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6847
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.