By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,363 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

scrollbars and labels!! Help!!!

P: 1
Hey!
I'm trying to create this program which determines if a user has been drinking too much alcohol. There's three scrollbars for the user to choose how many units of alcohol they consume weekly, monthly, and yearly. The problem is, is that i dont know how to connect the scrollbar to the label so it can display the results of the total units the user chose. Also, during run time, i want only the scroll bars relating to the drink types specified by the user to be visible..I'm totally lost and need help asap!! Thank you so much!!!
Nov 3 '06 #1
Share this Question
Share on Google+
3 Replies


100+
P: 1,646
Hey!
I'm trying to create this program which determines if a user has been drinking too much alcohol. There's three scrollbars for the user to choose how many units of alcohol they consume weekly, monthly, and yearly. The problem is, is that i dont know how to connect the scrollbar to the label so it can display the results of the total units the user chose. Also, during run time, i want only the scroll bars relating to the drink types specified by the user to be visible..I'm totally lost and need help asap!! Thank you so much!!!
Hi, perhaps you could use the updown control rather than a scroll bar.
Nov 4 '06 #2

QVeen72
Expert 100+
P: 1,445
Hey!
I'm trying to create this program which determines if a user has been drinking too much alcohol. There's three scrollbars for the user to choose how many units of alcohol they consume weekly, monthly, and yearly. The problem is, is that i dont know how to connect the scrollbar to the label so it can display the results of the total units the user chose. Also, during run time, i want only the scroll bars relating to the drink types specified by the user to be visible..I'm totally lost and need help asap!! Thank you so much!!!
Hi nuig,

Ok ur scrollbar is say VSrc.
Set Min And Max Values for that like
VScr.Min = 0
VScr.Max = 100
User Clicks on the scroll bar.
and in VSrc_LostFocus Event populate the label control like,
Check VScr.Value and display result in Label Control.

I hope it is clear.

Regards
Veena
Nov 4 '06 #3

Expert 5K+
P: 8,434
...in VSrc_LostFocus Event populate the label control like...
You should also consider using the .Change and/or .Scroll events of the vscroll bar, to populate the label.
Nov 5 '06 #4

Post your reply

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