Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help-slideer control Visual Basic6

Status
Not open for further replies.

piticot1

Programmer
Dec 11, 2007
5
SE
Hi!
I have a trouble in Vb 6.0. I have a slider control and when I load the current form I define the ticks.
For the following example:
sliAccuracy.Min = 1
sliAccuracy.Max = 24
sliAccuracy.TickFrequency =1
sliAccuracy.TickStyle=1

It will show 24 ticks like
_____________________
' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '

I want to modify this and I want to verify if each value is correct.
If a value doesn't respect a condition the tick associeted will not be shown.

For example:
the value of the third tick is not correct in this case the slide wil be:
_____________________
' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '

The third tick is not visible.

OR

If a value doesn't respect a condition the tick associeted will be disabled.

For example:
the value of the third tick is not correct in this case the slide wil be disabled.

_____________________
' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' '

Thank you very much!
 
> If a value doesn't respect a condition ...

???

The slider control allows a user to choose from a set of consecutive values, in this case 1 through 24. You cannot make a tick disappear, nor can you disable a tick.

What you CAN do is perform an action (or skip that action) if the sliAccuracy_Scroll event fires, and sliAccuracy.Value is a value that you're looking for. But, you will need to be a lot less cryptic about what you're trying to accomplish...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top