473,385 Members | 1,829 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,385 software developers and data experts.

scrollbars and labels!! Help!!!

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
3 1637
willakawill
1,646 1GB
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
1,445 Expert 1GB
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
Killer42
8,435 Expert 8TB
...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

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

Similar topics

24
by: Nobody | last post by:
Okay, you are all so smart in here. Answer me this: IE6 in standards mode doesn't seem to hide scrollbars on the body element (overflow:hide) Ain't this a quandary. I have it in my head that I...
6
by: DebbieG | last post by:
I am creating a database for a small department in a university. Each student in their database can have 2 mailing addresses. They wanted mailing labels pulling just the 1st address. No problem....
3
by: Grim Reaper | last post by:
I print mailing labels out of Access 2000 databases about 3 to 4 times a week. I have been having problems with one thing since I have been printing mailing labels. I print mailing labels by...
3
by: Grim Reaper | last post by:
I know this is probably an easy question, but I could not find/figure it out. Basically, I am printing mailing labels with a "Sorting/Grouping" section that groups the label types together....
0
by: Thomasa Gregg | last post by:
I cannot get rid of the scrollbars that are showing up on all my asp.net controls. Buttons, Labels, everything. It has something to do with my css. If I remove rel="stylesheet" from <LINK...
0
by: Dan Sikorsky | last post by:
I have labels and associated multiline textboxes on a panel that's disabled for the purpose of presenting lengthy readonly comments. Using this method, the textbox scrollbars don't work; the user...
0
by: Chetana | last post by:
I have created a report in windows application using c#.net. This report takes runtime columns and values and it is quite big. So the form has both horizontal and vertical scrollbars. All the help...
36
by: aljamala | last post by:
Hi, I keep getting this warning on a page, but I do not know what the problem is...does anyone have an idea about what could be wrong? line 88 column 7 - Warning: missing </formbefore <td> it...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.