473,594 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrollable form ??

Les
I was wondering if in Visual Basic.net if Microsoft has made it any easier
to scroll within a form. In VB 6 to do that required 2 picture windows that
would in effect simulate a scrollable viewport. I was wondering what
components or etc are available in VB.net that would allow this??

Thanks in advance,

Les
Oct 24 '06 #1
3 1522
You can put any Control into a Panel that is configured to scroll if the
content is larger than the client area of the Panel.

--
HTH,

Kevin Spencer
Microsoft MVP
Short Order Coder
http://unclechutney.blogspot.com

What You Seek Is What You Get

"Les" <vb*@prodigy.ne twrote in message
news:ej******** ******@TK2MSFTN GP03.phx.gbl...
>I was wondering if in Visual Basic.net if Microsoft has made it any easier
to scroll within a form. In VB 6 to do that required 2 picture windows
that
would in effect simulate a scrollable viewport. I was wondering what
components or etc are available in VB.net that would allow this??

Thanks in advance,

Les


Oct 24 '06 #2
Hi Les,

In the 2.0 framework there are actually several controls that can handle
scrolling automatically when child controls are placed outside of the parent's
client area. All of these controls derive, directly or indirectly, from
ScrollableContr ol (check out the AutoScroll property):

From the VS 2005 Object Browser:

ScrollableContr ol
ComponentTray
Panel
ToolStrip
ContainerContro l
Form
PropertyGrid
SplitContainer
ToolStripContai ner
ToolStripPanel
UpDownBase
UserControl

You can also subclass ScrollableContr ol or ContainerContro l in your own custom
controls to inherit automatic scrolling behavior. (Note also that Form and
UserControl are in the list.)

--
Dave Sexton

"Les" <vb*@prodigy.ne twrote in message
news:ej******** ******@TK2MSFTN GP03.phx.gbl...
>I was wondering if in Visual Basic.net if Microsoft has made it any easier
to scroll within a form. In VB 6 to do that required 2 picture windows that
would in effect simulate a scrollable viewport. I was wondering what
components or etc are available in VB.net that would allow this??

Thanks in advance,

Les


Oct 24 '06 #3
One thing to keep in mind that I have found out with auto scrollbars
- I dunno if this will help you.

Having a form that is set to Auto Scroll bar and Anchoring a button in the
right "lets say" ...and putting a minimum Anchor Value, ...
When that minimum value is hit, the scroll bar will not show - even if auto
scroll bar is set to true.

-VB 2005 express

Miro

"Les" <vb*@prodigy.ne twrote in message
news:ej******** ******@TK2MSFTN GP03.phx.gbl...
>I was wondering if in Visual Basic.net if Microsoft has made it any easier
to scroll within a form. In VB 6 to do that required 2 picture windows
that
would in effect simulate a scrollable viewport. I was wondering what
components or etc are available in VB.net that would allow this??

Thanks in advance,

Les


Oct 24 '06 #4

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

Similar topics

1
11261
by: Muralidhar | last post by:
Hi, I'm having a jsp page which is having a table and a div tag.The heading such as a radio button,Name , Age etc. are fixed.Only the data under it is scrolling. So i've set one table for header which are fixed. Then a div tag inside which there is a table which is used for scrolling the data.When i select a radio i'm submitting the form.The problem is here i'm able to set focus to the radio button, but i'm unable to maintain the...
7
11643
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
2203
by: pmud | last post by:
Hi, I have a web page (asp.net, code:c#). I havean html table with text boxes. Based on the user input , records are displayed in the data grid below it. Now the datagrid has a large no. of columns. & depending on what the user enters, the data grid can grow very large. So to avoid scrolling the whole page, I just want the data grid to be scrollable. For this I used the <div> tags around the data grid, <div...
5
2154
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...
2
4080
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)
0
1085
by: avanti | last post by:
HI, I have an app that has a form with scrollable controls. So, I cannot make a bitmap from the printscreen and print it since all the content and controls are not visible at the same time. Is there a way in C# to print such a form - printing the whole content? Thanks, Avanti
0
1123
by: LonelyRanger | last post by:
Hi Everyone, Thanks for your time. My question is based on VB.NET, pictureboxes and a scrollablecontrol. I have several pictureboxes inside a scrollable control. The scrollablecontrol is docked to form1. When i resize the form, then scrollablecontrol resizes aswell. What i need is for the pictureboxes to set themselves up so that they wrap again according to the available width of the scrollable control. I have it already...
1
16947
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
7947
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
7880
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
8374
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
8010
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
8242
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6665
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
3868
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...
0
3903
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1486
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.