ScrollBar Control By Program?

Nov 22, 2010

I 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.

View 2 Replies


ADVERTISEMENT

Allow RichTextBox Scrollbar To Control Another RTB Scroll?

Jul 10, 2009

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

Horizontal Scrollbar For WebBrowser Control?

Jul 25, 2009

I have a webbrowser control and when I dock it to fill the screen, the h scroll bardissapears. If it is undocked, there is a h scroll bar. How do I get it to have an h scroll bar if it is docked to fill the screen?

View 1 Replies

Scrollbar Won't Enable On Custom Control?

May 30, 2010

I moved this from the debugger thread as I got no responses.This may be a better area.I have a problem enabling a Scrollbar on a custom control I have created.The custom control has one component,the scrollbar and an area that I draw upon from an internal datasource.Think something like a textbox.In certain instances,I want the scrollbar to be enabled. The Custom Control's job is to do this when the situtation is appropriate.I have a very simple piece of code here:

If <logic conditions> Then
DataScroll_vscrollbar.Enabled = False
Else[code].....

This code is in my OnPaint routine (along with a bunch of other drawing related stuff).Essentially I've determined that there is more stuff to display than the area of the control and need to turn on the scrollbar to give the user of the control the ability to see later stuff.With the exception of this funny behavior, the control is doing exactly what I want.I step through this and have a watch set.I can step through the set to True, but the Enabled value doesn't change.Even the EnabledChanged event fires (Doesn't on the set to False because it's already False), but the Enabled value is still False.I don't know why.Now here is the really interesting part and may give somebody an idea about what's happening: I can change the Enabled value via the debugger (via the Watch) to True.The EventChanged will fire, and from that point on I can set the Enabled value to either True or False and back again with no problems.

I even did some really crazy testing to see if perhaps the debugger just wasn't showing something.

did something like:

Dim idiot as boolean = false
if <logic> then
idiot = true[code]....

I have set the values to Minimum and Maximum, but the problem remains.

View 5 Replies

Textbox With Vertical Scrollbar - Get The Scrollbar Position Without Having To Reposition The Carat?

Oct 21, 2010

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.

View 8 Replies

Set Scrollbar Position In Program?

Nov 3, 2011

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 Replies

VS 2008 - Control A Loop Event With A Scrollbar?

Jun 4, 2010

I am trying to use a scrollbar to move forward and back through records in a datatable and to populat an entry in a field to indicate that individual records are selected.In short i want to represent a the sum of a specific field of those records selected. Of course being a scrollbar it has to work in reverse and unselect records when the user moves it backward.

The purpsoe of the scrollbars is that there will be five of them and they will represent years. The records on the other hand represent projects which have an output (say money saving). The idea being projects selected in year one then cant be selected in year two. I am planning to do this by assigning a value that indicates they are already allocated to the previous or other years scroll bar. I can set up a loop to go through the whole data set and do this for a year (and have), but i want to use scrollbars and make it interactive.

View 4 Replies

VS 2010 Panel With Scrollbar And Button Control?

Jan 30, 2012

Does anyone know how to create a control similar to the screen shot below (CCleaner). It appears to be panel with a scroll bar and button to control what panel is shown any ideas?

View 5 Replies

Asp.net - Moving The ScrollBar To The Selected Node In A TreeView Control

Mar 19, 2010

I have a treeview control where I am dynamically selecting a node depending on user interaction. when a node is selected I want to be able to have the scrollbar go to the location of that selected node in the tree. The scrollbar is simply made by overflow:auto in the div tag where the treeview is located. Can someone give me some detailed code to accomplish this?

View 1 Replies

Scrollbar On Custom Control (inherited From Windows.form)?

May 16, 2011

I'm trying to create my own control to build a custom planning on it.After trying it with loose controls I got an error but after advice on my previous post, I redraw everything.I have now the header of the control finished, the header shows the days of the month for as many months that fit in the window.Now I want to put the list of data below it, but it will be more than the windows height, so I need to have a scroll bar that will scroll the data but not the header.I would not like to design my own scrollbar and rather use the scrollbar control for it, but when I put it in, I cannot use the NEW keyword.example:

Dim sb
As
ScrollBar

with this I get the error message: 'New' cannot be used on a class that is declared 'MustInherit'.How can I get a scrollbar on my form to scroll the list only (so not the header)?

View 7 Replies

VS 2008 Change Scrollbar Color In Textbox Control?

Apr 7, 2009

[code].....

View 1 Replies

Change Color Of Panel's Scrollbar In Program 2010?

Aug 20, 2011

Does anybody know how can we change color of Panel's Scrollbar in vb 2010?

View 4 Replies

Create A Program That Displays The Height Of 3 Different People Via A Scrollbar?

Oct 31, 2010

I have been asked to create a program that displays the height of 3 diffrent people via a scrollbar. The problem i'm having is i don't know the code for getting the total from the scrollbar to display on the height labels .The labels are named lblheight1 lblheight2 lblheight3 Scrollbar is named vscheighttotal?

View 5 Replies

Process Of Designing A Computer Control Program To Control A HF Communications Receiver?

Jul 11, 2008

I am in the process of designing a computer control program to control a HF communications receiver (radio), and have found a problem with the Serial port. I am using VB Express Edition 2008. This module of the program is supposed to take an input string from another part of the program, format it, break it into 4 bytes, and send it to the radio in hex form via COM port 1. The problem comes in when you try to enter a frequency with an 8 or a 9 in it. The 8 or 9 is usually replaced by 45, ex.-input 9900, receiver tune 4545. The exact same thing happens with 8's, input 8800 and receiver tune 4545. All other numbers other than 8 or 9 work fine. The strange part of it is that sometimes the 8's and 9's work, and work correctly. For instance, 900, 1900, 2900, 3900, 4900, 5900, 6900, and 7900 all work correctly. This led me to believe that is may only be when the 8 or 9 is in the first position, but that is not the case, it also shows up in other positions as well. All other frequencies that do not have 8 or 9 in them also work. I ran into this same problem with VB Express 2005, and worked on it for weeks before giving up and going back to VB6.0. This same module (with exception of the port open command) runs flawlessly under VB6. I have even tried importing the MSCOMM control from VB6, but it gives the same results. In de-bugging mode, all of the inputs, decimal and hex seem to be correct, so the problem must come in after you click the command button, but before it leaves the COM port.

[Code]...

View 19 Replies

Possible To Copy An Edit Control (win32) From External Program To Use On Own Program?

Jan 9, 2010

I need to manipulate an external edit control from with in my program. (IE: Get new text whenver it's being enter into edit control and parse the infomation in my program).So, is it possible to create an edit control in my program that base on the handle of an existing application using win32 api or something

View 4 Replies

A Scrollbar For A Textbox?

Jan 26, 2011

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 Replies

Can't Get Scrollbar On (VB2008)

Jun 30, 2010

I 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.

View 10 Replies

Cannot Reach Scrollbar's Value

Jan 13, 2011

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 Replies

Scrollbar In Windows 7, Not In XP?

Jul 6, 2010

I'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?

View 3 Replies

ScrollBar With DataGrid?

Oct 26, 2009

I 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 Replies

.net - Detect If A Scrollbar Is Or Is Not At The End Of A Richtextbox?

Mar 18, 2009

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.

View 3 Replies

Add Mouse Up Event To Scrollbar?

May 25, 2010

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 Replies

C# - DropDown Menu With ScrollBar In .NET

Jul 3, 2010

I'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]...

View 3 Replies

Get Vertical Scrollbar For Form1?

Apr 25, 2010

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?

View 1 Replies

Get Vertical ScrollBar Postion?

May 25, 2009

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 .

View 5 Replies

Getting The Horizontal Scrollbar Location?

Dec 2, 2009

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 Replies

Hide RichTextBox Scrollbar

Nov 26, 2009

I 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 Replies

Hide RichTextBox Scrollbar?

Nov 25, 2009

I 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 Replies

Page Under The Tab Have The Property Set For A Scrollbar?

Dec 15, 2010

I 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 Replies

Paint Scrollbar On A Datagridview?

Mar 15, 2010

I 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 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved