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?
Not so much a VB question more of a Net question.Does anyone have a logical explanation as to why the Maximum value of a Scrollbar is impossible to reach by user interaction?The documentation explains clearly the how, it just gives no reason for the why.
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.
I'm using visual basic 2008. I have try this code and its work. But the problem is I want to read the text line until it reach line that contain "T". I can only produce the output if I write looping until "T12". I just want to write the code loop until it "T" not "T12".
I have created a program which opens a file, eliminates the delimiters and save the info into another file.What I need is to reach a specific numbers of characters in the string (which is between 14 and 19 and tells us the date) and to compare it with the current date. If the date is equal or later than today's date , save all lines in to another file. Pease help me to walk through the string and get the substring and finally compare with the current date.
I have a subroutine with a for i as integer=1 to 128 it should send 128 mouse clicks to another application sometimes it does sometimes it doesn't (it works well until it reaches 64 then the numbers go crazy). i suppose that because vb debugger reports that for my form there are 2 threads running (i have a Core2Duo processor and i've read somewhere that multithreading has something to do with the processor).Is there anything i can do to make the cycle reach the 128 clicks? i've tried setappartmentstate to STA, i've tried synclock monitor.enter nothing works, it fails it returns from the subroutine to where it started from and the next time the same story
How to raise combobox_SelectedIndexChanged(object sender, EventArgs e) programmatically? Lets say i have method called ClearFields(). I want to call the event before i hit the end of Clearfields() method.
I am developing an application that will do 2 things:
- connect to a webservice
- Upload/download files through WebDAV.
Seems to work fine, but I am having an issue with debugging. Since WebDAV is installed on the server, i have to publish the webservices there aswell, as the webservice is going to access the file locally (serverside) after upload to the server. This makes it impossible for me to debug the webservices. When i switch to the local services for debug, they cannot reach the file that was uploaded to a remote location (the server). Is it possible to install a local WebDAV server, even if i do not have IIS set up? Just for testing purposes?
I have an inputbox with ok cancel buttons in my class.The user should fill in numbers in the inputbox and if nothing is entered and the user presses cancel or ok, the user get's a msgbox that he should enter something and after this the inputbox should show up again until something has entered.
I now have the following code:
Dim answer As String Dim amount As Integer Dim result As DialogResult
I have a this program I have to write but I have no clue where to even start.New Years Ball Drop?Design a program that replicates the Times Square New Year�s Eve ball drop. You can use a picture from the Internet of the ball you wish to use.Functionality Requirements:
-The ball will take exactly 30 seconds to move down the pole
-Need a timer to count down from 30 and reach 0 when the ball is at the end of the pole
-The timer will randomly change colour every few seconds
- When the ball has finished descending, the text �Happy New Year!� will display on the screen
-Need a button on the form that, when clicked, stops the ball drop and timer (so screenshots can be taken). When the button is clicked again, the timer and ball drop should resume from where it left off.
When you reach a captcha while creating accounts on some sites, is there code that would make the program pause and a message box pop up that would ask for input for the captcha code?
If I wanted to pull the #'s between: <REACH RANK=" and "/> how would I do this with regex? I tried it, and it'd say "Too many: )'s"....then i'd remove it...then it'd say: "Too Few )'s".
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.
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.
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.
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).
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 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.
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.
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.
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.
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.
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.
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).