You are viewing our Forum Archives. To view or take place in current topics click here.
Counting button clicks for specific selected items VB hlp me
Posted:
Counting button clicks for specific selected items VB hlp mePosted:
Status: Offline
Joined: Apr 21, 20159Year Member
Posts: 36
Reputation Power: 1
I have posted a lot recently but i am not a huge programmer, my bad.
I have a contacts system which allows me to select and item(name) from a list box and produce extra information, using a view contact button. I need to be able to count the amount of times each of these contacts has been viewed so that i can have a most viewed list box. Any help would be great, thank you
I have a contacts system which allows me to select and item(name) from a list box and produce extra information, using a view contact button. I need to be able to count the amount of times each of these contacts has been viewed so that i can have a most viewed list box. Any help would be great, thank you
#2. Posted:
Status: Offline
Joined: Mar 30, 201410Year Member
Posts: 3,589
Reputation Power: 376
Status: Offline
Joined: Mar 30, 201410Year Member
Posts: 3,589
Reputation Power: 376
Make a label to count them and set the text to "0" then for the button click event add
Obviously change the label1.text to whatever label it is
label1.text = val(label1.text) + 1
Obviously change the label1.text to whatever label it is
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Apr 21, 20159Year Member
Posts: 36
Reputation Power: 1
Maj wrote Make a label to count them and set the text to "0" then for the button click event add
label1.text = val(label1.text) + 1
Obviously change the label1.text to whatever label it is
I need to count the individual items of the list not just the amount of times the button is clicked, if you get what i mean
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Mar 30, 201410Year Member
Posts: 3,589
Reputation Power: 376
Status: Offline
Joined: Mar 30, 201410Year Member
Posts: 3,589
Reputation Power: 376
Make a setting for each contact then you would need something like this (assuming the contacts are in a combo box)
All's I can say is its gonna be tricky
If combobox1.selectedindex = x then
label1.text = val(label1.text) + 1
my.settings.contact1 = label1.text
my.settings.save
All's I can say is its gonna be tricky
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.