473,387 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

VB Scroll Bar Half Percentages

Hoping someone can help me out with a VB question.

I have a scroll bar that I need to have increase / decrease by half a percentage.

Min is 5
Max is 15
Start Display Value is 10

So far all I have been able to come up with is this, but it only increases / decreases the number by 1% instead of .5%.

Private Sub RateHScrollBar_Scroll(sender As System.Object, e As System.Windows.Forms.ScrollEventArgs) Handles RateHScrollBar.Scroll
Dim RateDouble As Double = RateHScrollBar.Value / 100

RateTextBox.Text = RateDouble.ToString("P1")
End Sub
Sep 21 '11 #1
1 2022
Guido Geurs
767 Expert 512MB
Form with : Command1, ProgressBar1 and Label1

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.    With ProgressBar1
  3.       If .Value < 15 Then .Value = .Value + 0.5
  4.       Label1.Caption = .Value
  5.    End With
  6. End Sub
  7.  
  8. Private Sub Form_Load()
  9.    With ProgressBar1
  10.       .Min = 5
  11.       .Max = 15
  12.       .Value = 10
  13.    End With
  14. End Sub
Sep 22 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Joe | last post by:
Hi, is there way to have a scroll box that works in NN/FF? I am using a div with overflow and its great in IE but not in anything else. Is there a way? Thanks - Joe
1
by: Megan | last post by:
quick summary: i'm having problems trying to group fields in a report in order to calculate percentages. to calculate percentages, i'm comparing the results from my grouped fields to the totals....
2
by: Leonid Shirmanov | last post by:
Hi, I have a form with control placed on it. Control has the image painted on its graphics. Size of the contol is greater than size of the form and scroll bars appear in the form. I scroll the...
3
by: Roy Harbert | last post by:
How do I get the editor to scroll with the mouse wheel????
6
by: Lester L. | last post by:
Hello all, I've been trying for quite some time to eliminate scrollbars on my latest site; I'd be perfectly happy if only the horizontal one would go away, actually. FF and Opera have horiz....
7
by: James | last post by:
Hi, I have a Windows Forms application which uses multiple child forms (MDI interface). The height of one of the child forms is larger than the height of the MDI client area, so when this...
5
by: sam | last post by:
Hi all, I am using documnet.body.scroll to disable the window scroll bar. This works in IE only and not other browsers. Can any one tell me if there is any such method which is cross browser...
0
by: Charles Law | last post by:
Can anyone suggest how to keep two ListView controls synchronised? It is a common scenario: two ListView controls, side-by-side, containing similar data. I want to scroll one control and have the...
1
by: Karl | last post by:
I have a A2000 form that won't show the vertical scroll bar. I have the scroll bar format set to show Both. The horizontal bar works fine. I tried settting the format to show vertical only and it...
1
by: sly9er | last post by:
Hello Techies, Here is an interesting conundrum... Normally I can get the webbrowser control in my vb.net application to scroll using the following code after the webpage loads into the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.