.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

scroll bar

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :ASP.Net

 in VWD 2008 in the window to see code behind, I have a scrolll bar  on the right side of the screen. When I  click and hold down on the arrow at the top  or bottom of the scroll bar it bumps along up or down depending on whether I click  the top  arrow or the bottom arrow. The arrows at the top and bottom of most scroll bars move the text smoothly.

How do I get out of this ridiculous nonsense of bumping along and get a smooth action out of the top and bottom arrows of the scroll bar. It  is slow and a nuissance.

View Complete Post

More Related Resource Links

setting scroll position for a ListBox


I have a ListBox control showing 10 rows.  I have 30 rows total in the listbox.  How do I programmatically adjust the scroll to show the last ten rows?

Some sources have suggested that I set the SelectedItem.  But I am already making selections (myListBox.Items[28].Selected = true, myListBox.Items[29].Selected = true, etc); the listbox scroll is positioned on Item[0] not the first selected item.  I have also tried setting myListBox.SelectedItem in addition to the multiple selection just mentioned but that does not have any affect either.


How to make browser scroll to the bottom of page


Hi All,

  How to use asp.net C# to scroll to the bottom on page on post back or programmatically decision? 

How I disable vertical scroll bar of report viewer control on Web Form.


I'm displaying .rdlc report file using Report viewer control on Webform. If  I Fix height of viewer control and data is not same as to size of viewer control then it display one scrollbar on viewer control and second vertical scroll bar is coming on webpage.

 I want to off viewer vertical scrollbar or in simple word's I don't want to display two scroll bar with my report. Please guide me or send me reference if any.


How to scroll the DataGrid (horizontally) when user drags a column header far left or right?

We're working with the WPF DataGrid and I have a question about  dragging column headers: The grid lets the user rearrange the columns, by dragging the column header left or right.  So far, so good. But, sometimes we have many columns, and only the first few columns are visible; so there is a horizontal scrollbar.  In such case, if the user drags a column header to the right edge of the DataGrid window, I want the DataGrid to scroll, automatically, one column at a time.  Is there an easy way to do that? (To be clear: yes, the user can already scroll horizontally by interacting with the horizontal scrollbar, but that isn't what I'm asking about.  I'm asking if the "drag a column header left or right" gesture can cause the DataGrid to scroll left or right.) I guess I could handle various low-level events, but it seems like it shouldn't be necessary -- DataGrid has so much functionality built-in, that I'm guessing it already has the ability to scroll when the user drags the column header to the edge.  So, is there either (a) a property that I can set, to tell the DataGrid to scroll when the user drags a column header to the edge of the window;  or (b) a code example showing how to achieve this effect myself?  Thanks!

How to remove the horizontal scroll bar from a TextBox on web form

HiHow to remove the horizontal scroll bar from a TextBox on web form.I am using IE8.0<asp:TextBox ID="TextBox1" runat="server" Width="99%" Height="250" Wrap="False" TextMode="MultiLine" ReadOnly="True"></asp:TextBox>The horizontal scroll bar is always visible weather there is text or not, in a disabled mode.And the vertical scrollbar of textbox flickers when I am moving my mouse cursor over anchor tag <a />. For textarea control the scroll bar automatically goes up. I am hiding and showing a div tag on click of anchor tag.Thanksgsalunkhe

C# ASP.NET Problem keeping scroll position SelectionMode="Multiple"

Have tried numerous solutions and nothing has worked.  I'm pretty sure that Javascript is required to get this functional. Thanks for your help!    Here is the code for file Search.aspx ===BEGIN<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="SearchApp.search" MasterPageFile="~/Site1.Master" EnableViewState="true"%> <asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <fieldset> <legend style="text-align:center;"><b>Make Atleast one or multiple selections from one of the following categories</b></legend> <div class="wrapperserach"> <div> <div class="side-a"> County<asp:ListBox ID="Lcounty" runat="server" AutoPostBack="true" SelectionMode="Multiple" OnSelectedIndexChanged="Lcounty_SelectedIndexChanged" Width="140px"> <asp:ListItem value="1">Imperial</asp:ListItem>

How to Add A Scroll bar to ChecKbox List

Can any1 guide me to add scrollbar to checkboxlist Regards Chandrakant 

Ajax Calendar won't appear unless browser scroll bar is at the bottom (IE7)

Hi, I have an ajax calendar in the middle of my page. I already wrapped it in a div with position:relative but the calendar doesn't show up unless the scrollbar is at the bottom.Thanks

How can I programmatically scroll to a DataGridRow that's off-screen?

There are many articles on the web about using attached behaviors for bringing a selected item into view (one such article is at http://www.codeproject.com/KB/WPF/AttachedBehaviors.aspx). I've been trying this technique to implement error navigation in an application (like double clicking on an error in VisualStudio) but I'm hitting a problem. While it works great when you click on a visible row, it doesn't work if the selected row is offscreen, since the DataGrid's VirtualizedStackPanel is virtualized, so the row container wouldn't have been created. I know that setting the DataGrid's VirtualizingStackPanel.IsVirtualized property to false will solve this problem (since it forces all DataGridRow containers to be created) but it ruins my application's performance. Is there another way to handle this so I can programmatically scroll to DataGridRows that are offscreen (and don't yet have containers)? In the worst case, perhaps a way to calculate where the row "would" be if I knew the row's index? Thanks, -Craig

Making a scrollable panel scroll with mousewheel just by hovering mouse

Hi, I have a particular problem with a possible solution and I am interested in hearing peoples opinions if it is the right way to go about it (or not  ) Some applications I have come across, such as Firefox, will allow the user to scroll the document window just by hovering the mouse over the display area and using the mouse wheel. You don't have to focus / select the display area first. With Firefox, the address bar can have the focus and the keyboard input but you can still scroll the document. Contrasting with IE and Visual Studio, you have to click into the document area before it responds to mouse wheel messages. In my winforms app, I have a tab control with several scrollable tabpages as well as scrollable panels in other places. Some of these just display data and don't have controls that can be focused or tabbed into. I would like to emulate the firefox behaviour described above. What I have done is created a class, ScrollPanelMessageFilter, that implementes System.Windows.Forms.IMessageFilter and that takes a Panel as it constructor parameter. It detects the mouse wheel when the cursor is over the display area and sends the message to the panel: using System;using System.Collections.Generic;using System.Diagnostics;using System.Drawing;using System.Text;using System.Runtime.InteropServices;using System.Windows.Forms;namespace MouseWheelTest{   

ASP.NET GridView help!! Need to be able to scroll an individual cell up and down.

Hi everyone.  I have an ASP.NET GridView displaying the below grid.  As you can see, the column on the right has a LOT of text and it stretches the column.  I need to be able to set a fixed width for JUST that column (maybe like 200px) and have vertical scroll bars on that cell so the user could scroll down to read the rest of the text, is that possible to do?Here's my markup: <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource2" AutoGenerateColumns="False" AllowPaging="True" AlternatingRowStyle-Wrap="False" CellPadding="4" ForeColor="#333333" GridLines="None"> <RowStyle Height="30px" BackColor="#EFF3FB" /> <Columns> <asp:BoundField DataField="Customer_Name" HeaderText="Customer" SortExpression="Customer" /> <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" /> <asp:BoundField DataField="Module" HeaderText

How can I make the listbox scroll to the selected item

Hi All, I have a textbox that searches the listbox below it and selects the text that I types in the textbox. Now although the item is selected in the listbox I have to scroll to the end to see if the item is selected ornot IS there a way that I can make the list box scroll to the selected item?    

How do I have a banner that doesn't scroll?

Can someone please point me to an example of how to, in MVC 2, do a master page so that the banner/menu area of the page does not scroll with the rest of the page? In the past with ASP Classic, I would just use Frames... Richard  

Problems with scroll bar

Hi all I am using custom master page by Randy Drissgill, and I have customized it a bit, but got a little problem with scrolling. I have centalized my content by using this in my custom css form { width: 999px; margin-left: auto; margin-right: auto; border: solid 1px gray; }   The problem I get is that the scroll bar gets inside the frame that is centralized for the content. I want it to be "outside" on far right, like it is on all other web sites. I have tried to solve the problem by following these guides, 1) Remove the “_fV4UI” variable from the top of the page. 2) Remove or change the Workspace element’s ID to make the ECMAScript code abort early during window resizes and Ribbon minimize/maximize events. 3) Remove the “scroll” attribute from the Body tag. In your CSS stylesheet: 1) Remove or change the width, height, and overflow declarations on the “body” tag.2) You can optionally remove the s4-workspace and s4-bodyContainer rules since they are no longer necessary. http://blogs.msdn.com/b/sharepoint/archive/2010/04/06/customizing-ribbon-positioning-in-sharepoint-2010-master-pages.aspx And this: Remove or override the CSS that hides the body overflow - body { overflow:hidden; }. Remove scroll="no" from the <body> tag Remove ID="s4-workspace” from the <div> tag that surro

How do I make an image to scroll (to right/left/up/down)?

Hello I know how to make the image shrink/widen etc..  I'm looking for a code to let the image run from the left to the right.   Thanks Eli    

s4-workspace scroll error

Hi,   when i customize the v4 masterpage , i have a strange error in the scrollbar of the s4-workspace : when i try to put any html or asp content between the ribbon and the workspace , the scrollbar won't see the bottom of the page (-> we can't see the bottom arrow of the scrollbar, it meens the height of the scrollbar is incorrect) test code : <div id="s4-ribbonrow" class="s4-pr s4-ribbonrowhidetitle">...</div> <div style="background-color:black;height:35px">&nbsp;</div> <div id="s4-workspace"><div id="s4-bodyContainer">...</div></div> (error found in IE8 and FF3.6)
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend