473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to scroll the controls in vb.net web form?

Ajay Bhalala
119 64KB
I am creating the college management system in vb.net.

I have created the form named "MainPage" as home page.

And I have put 1 backgorund image in the form. and then I put 1
menustrip below the background.

I want to put some controls below the menustrip, but now there is no space available in the form.

I have tried to resize the form, but now the form can not become more big. What can I do?

In ASP.NET, there is facility available that automatically scroll-bar is available, but there is no such type of facility in vb.net.

You have any suggestion for this? Please help me.

Thank you in advance.
Jan 16 '15 #1

✓ answered by Frinavale

I haven't developed a win forms application in Many years....

Check out the ScrollBar Properties to determine which ones you want to use that will set the position of the control.

For example, the ScrollBar's Left property gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.

5 3044
Frinavale
9,735 Expert Mod 8TB
There are 2 major aspects to developing an ASP.NET application:
  1. Server Side: this is the VB.NET code executed on the server that produces output to display in browsers
  2. Client Side: this is HTML, CSS and JavaScript/Ajax code that is executed in the web browser to display things to the user

If you are implementing an ASP.NET web forms application there are a bunch of built in controls available to you.

For example, you have Panels, Labels, DropDownLists in ASP.NET; however, in HTML these things don't exist.

A Panel will be translated into an HTML <div> tag, a Label will be translated into an HTML <span> tag, a DropDowList will be translated into an HTML <select> tag with the items being HTML <option> tags.

With that in mind, you are looking for client-side/browser functionality to allow the content to be scrollable.

To do that you use an HTML style that you can apply to <div> elements (well, actaully you can apply this style to any element that is being displayed as a block)... Anyways, this style is called overflow.

You can apply styles to ASP.NET elements like this:
Expand|Select|Wrap|Line Numbers
  1. <asp:Panel ID="ScrollableContent" style="overflow:scroll; height:200px;" runat="server" >
  2. ....
  3. </asp:Panel>
-Frinny
Jan 19 '15 #2
Frinavale
9,735 Expert Mod 8TB
Sorry I misread your question.

Try using the ScrollBar Control.

-Frinny
Jan 20 '15 #3
Ajay Bhalala
119 64KB
Ok, I have to use the ScrollBar Control.

But I have a big question...
"At the design time, how can I put my controls at their proper place?"

Thank you for your help.
Jan 21 '15 #4
Frinavale
9,735 Expert Mod 8TB
I haven't developed a win forms application in Many years....

Check out the ScrollBar Properties to determine which ones you want to use that will set the position of the control.

For example, the ScrollBar's Left property gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.
Jan 21 '15 #5
Ajay Bhalala
119 64KB
OK Frinny,

I have tried it. But at design time, I can't scroll, but at run time, it works. I can not get the idea of my form's design, so I have add and put my controls at runtime, so its works.

Thank You so much for your suggestion.

Thank you very very very much for all the helps from you.

Thank you.
Jan 24 '15 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Scott M | last post by:
Hi, I am writing a small game that is using a form 800 * 600. The form can be scrolled vertically up to a height of 1200 (basically the form can be scrolled down one screen vertically). The...
5
by: Kevin Robinson | last post by:
Is there any way of increasing the height of a VB form and of using a scroll bar to access the data outside of the normal window. My problem is that I need at least 40 rows on a form each row...
3
by: Devonish | last post by:
I have a form designed as a Continuous form which displays one record per line. Taking account of the header and footer and the size of the screen, I can display 30 records at a time. I can see...
2
by: Lyn | last post by:
Hi, I am opening a form in Continuous mode to list the records from a recordset created in the calling form. The recordset object is declared as Public and is set into the new form's Recordset...
0
by: TusharP | last post by:
Hi Friends, I have one form having border style none. (Form have irregular shape) This form has number of Dropdown, Textbox and Labels. When Minimized button I resize form to some small value....
0
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a...
2
by: Sam | last post by:
Hi, I don't want to use Autoscroll as I want the user to scroll up and down whenever he wants. So i've added a VScrollbar to my form but nothing happens when I move it. How can I scroll the form...
9
by: netasp | last post by:
hi all, how can I populate one aspx form when page is loading based on page ID? for example: loading page A (to search for VB code) would display labels and texboxes, dropdown lists all related...
1
by: =?Utf-8?B?UmljaA==?= | last post by:
I placed a button on a form menustrip for the purpose of causing the horizontal scrollbar of my form to appear so that I can access controls outside of the form's current view (the controls are...
1
by: koding1 | last post by:
Hi, I am developing an editor program using rtb in vb.net. Now, i hav added some controls in it using rtb.controls.add statement and i want to scroll these controls with scrollbar. I hav read...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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...

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.