473,472 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

Ajay Bhalala
119 New Member
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 3052
Frinavale
9,735 Recognized Expert Moderator Expert
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 Recognized Expert Moderator Expert
Sorry I misread your question.

Try using the ScrollBar Control.

-Frinny
Jan 20 '15 #3
Ajay Bhalala
119 New Member
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 Recognized Expert Moderator Expert
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 New Member
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: 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,...
1
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.