ScrollBar With DataGrid?
Oct 26, 2009I am using Visual Basic.Net 2003 and have a DataGrid in the form that I am using but I can't find anuindication or procedure to add a vertical ScrollBar.
View 7 RepliesI am using Visual Basic.Net 2003 and have a DataGrid in the form that I am using but I can't find anuindication or procedure to add a vertical ScrollBar.
View 7 RepliesI have a ScrollBar Template as per below - only relevant portion shown:
<ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
<Grid>
<Grid.RowDefinitions>
[code]....
Now the Rectangle Portion:
<Rectangle Height="35" Width="19" Fill="{StaticResource GreenTeaBrush}" Margin="-35" VerticalAlignment="Top"/>
I only want that to show up on DataGrids OR i would like this enter ControlTemplate to only work on the ScrollBars of DataGrids.
So with the stock Textbox, I set the Scrollbars property to Vertical. This is great if the text in my box never changes; I can scroll up and down while the box sits still. If I'm running a background operation that logs output to the box though, the scrollbar resets itself to the top every time I append text to the box.
I know I can set the Textbox.Selection property (or use the Select method) to reposition the carat in the textbox, make note of that position in a variable, then append text, reset the carat, and use the ScrollToCarat method to reposition the scrollbar where it belongs. That's a really (ridiculously) long way around. Anybody know if there's another/better way of holding the scrollbar position, short of actually building a custom control (or using a Textbox and a separate Scrollbar)? It never hurts to try. In a worst case scenario, you'll learn from it.
How can I make a textbox have a scrollbar that appears when the text goes off the screen so the user can scroll down as needed?
View 3 RepliesI have inherited support for a program written in VB2008
The problem I have is as follows:
Users have a low screen resolution (company policy) and so can't see the bottom of a particular form.
The bottom of the form has buttons that allow them to navigate between its' four pages so they need to be able to see them. This being the case I need to add a scrollbar to the form.
If I try to drag and drop a vscrollbar from the toolbox it just sits there at runtime (you can slide the button on the toolbar up and down but nothing happens regarding scrolling the page.
All the reading I have done seems to point to forms being given scrollbars in accordance to the AutoScroll, AutoScrollMargin and AutoscrollMinSize properties of the Form itself.
By setting these properties I can get scrollbars to appear in the IDE but they are not there at runtime.
I think I'm probably missing something really obvious here but, so far, have been unable to work out what it is.
So, in my vertical scrollbar, the maximum value is 16. In my application, I made a Label to track the scrollbar's value, just for testing purposes. I noticed that when I move the bar to the bottom, the value is 6. And when a [i]release[/i] the button (stop holding it with the mouse), the value becomes 7. Something similar goes when I move the button to the top: It is 1, and when I release the button, it becomes 0. That's a bit weird, but what mainly bugs me is why I cannot reach value 16?
View 1 RepliesI'm working on a project which must run on several computers, each with their own version of windows.
In Windows XP the project runs fine, but in Windows 7 I get a horizontal aswell a vertical scrollbar. I can't seem to turn it of.
I'm using a MDI parent and several childforms, eacht childform neatly adjusted in size to fit the parent, not exeeding the parent limits.
autoscroll is false
windowstate normal
Am I missing something, or is this just a supurb item in wondows 7?
How to detect if a scrollbar is at or not at the end of a richtextbox?
edit: when I say at the end I mean completely scrolled to the bottom, not anywhere else.
I create some vscrollbars dynamically and add scroll event handlers to them. I really want to detect when the user has finished scrolling with a mouse up event but this doesn't seem to be part of the scrollbar events.
View 3 RepliesI'm trying to make a user control similar to the Windows Vista/7 breadcrumb bar used in windows explorer. However, when I show the drop down menu for a breadcrumb with many sub items, I get a very long list that sometimes exceeds the screen size. In the Windows Vista/7 example however, there are a maximum of 18 items displayed at a time and a scrollbar appears at the right when the number of sub items exceeds this number (18).
[Code]...
My problem is that I built this program for my VB class, but I built it on my desktop at home which is a 23" monitor. When this is opened on a smaller screen, you dont get to see all of the project. I want to add a vertical scroll bar but that is beyond what I have been taught and beyond what my book teaches...
how to get a vertical scroll bar to scroll the whole form?
I have a TOS agreement that i would like my user to have to view ...
basically the same way "World Of Warcraft" does it ...
You must scroll to the bottom for the accept button to be enabled and clickable...
but in vb.net i cant seem to find a way to determine the vertical scrollbar postition .
I have a horizontal scrollbar on my form, and the form is longer (vertically) than the screen. What I'd like is for the horizontal scrollbar to always be visible at the bottom of the screen, no matter where the user is vertically. Right now, the user has to scroll all the way to the bottom of the form in order to see the horizontal scrollbar.
View 2 RepliesI have a form with multiple richtextboxes that have synchronized scrolling (ie when one RTB scrolls, the other RTBs scroll down with it). The only problem I have is that I have 10 RTBs, which means 10 scrollbars in total. I would like some of them to not show for simplicity reasons. Basicly the scrollbar of RTB1 to show and hide the rest.
View 1 RepliesI have a form with multiple richtextboxes that have synchronized scrolling (ie when one RTB scrolls, the other RTBs scroll down with it). The only problem I have is that I have 10 RTBs, which means 10 scrollbars in total. I would like some of them to not show for simplicity reasons. Basicly the scrollbar of RTB1 to show and hide the rest.
View 1 RepliesI have an app that uses the Tabcontrol. Can the page under the tab have the property set for a scrollbar? I can see the autoscroll, but thats not what I need.
View 5 RepliesI have seached through the net to find a solution to customize the scrollbars on a datagridview. I found some stuff, but this seem to be not very easy.
View 1 RepliesI have a game with a large panel in VBE2008 with a Vertical Scroll Bar Control.
The user uses his mouse to move it up and down, etc.
But how can the game program move this control?
For example, the control bar is slid down to the panel and I want my program to slide back to the top starting position when the user clicks on the Reset Button.
I have a bunch of dynamically created scrollbars. They show up as gray against my otherwise colorful UI.
Anyone have code to either set the scrollbar background to a given color or to make it transparent so it paints as the
background color of the panel it resides on?
I have one gridview which was in a panel and I set panel's Scrollbars property as vertical and height 200px. Gridview has number of rows (say 1000). If i scroll down and selected a 900th row,scroll bar will move to top.I want to focus on that row after selection(ie.scroll bar will be on the same position when we selected).
View 1 RepliesI have set up a scrollbar to have a value between 0 and 264 (i.e. 0-255 when taking the width of the slider into account). I also have a text box that is set up to display the current value of the scrollbar as an interger. However I am currently unable to enter a value in the text box which also moves the scrollbar to its equivilent position. The closest I've been is when I was able to change the value but kept ending up with an error when a number above 255 was entered or when there wasn't a number in the text box.[code]What I am after is to be able to enter a number between 0 and 255 (and only a number between 0 and 255)in the text box and it change the position of the scrollbar accordingly and to omitigate the errors which occur when there is nothing in the text box by accepting an empty box as 0.
View 2 RepliesI have a main form and thru a menustrip I display a second form with a listbox and a button to start the process.
View 10 Replies"Is it possible to use one ScrollBar to set different Values in 2 more scrollBars? In the code that follows, I want to use Frequency 1 ScrollBar Value to set Frequency 2 ScrollBar Value, and Duration 2 ScrollBar Value! Is it also possible to then play these 2 tones together at the same time?
Private Sub BtnGenerate1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnGenerate1.ClickBeep(Frequency1.Value, Duration1.Value)End Sub
[code]....
What i need is when i click a button it will msgbox the position of the vscrollbar.
View 4 RepliesI am making use of a Label in a POPUP window. The POPUP works fine, but i would love to have a Vertical Scrollbar on my Label. I tried to use a Texbox instead, but the problem is that my text ends up in the wrong places. I set the Textbox to Multiline.
I am attaching an image to show the difference between the two.
1. Why is the Textbox doing this?
2. How can a get a scrollbar on a Lable?
I have a datagridview with transaction bindingsource I want the datagrid to show the sorted rows only not all the records when i enter a value into a textbox and click button sort.
View 1 RepliesWhat I am trying to do basically is open an access query in a datagrid view and then be able to make changes to the datagrid and then save it back to the database.When I try to save:
Me.BindingSource.EndEdit()
Me.TableAdapter.Update(DataSet)
It says that update is not a member of the tableadapter... Why is that?
now i use acces as datasource to view the agenda in a datagrid and a combo box to select a year or month so i can find the selected month or year in the datagrid .how do i program it so that it searches the selected year or month in a datagrid
View 2 RepliesIn my Windows Form application, i want to change the width of a scrollbar that belongs to a FlowLayoutPanel.
The Scrollbar is added "automatically" since the content of the Flow Layout Panel is larger the Form.
From what I've found on the web, it seems to be tricky.
I want to be able to have a richtextbox scroll event synced with the scroll of another richtextbox. Do any of you know how this is possible
View 4 Replies