I want to write a code for one of my command buttons (cmdCalculate) and that it shows the number of times it has been clicked in the lblGroupCount.
I went through some books and I found this two codes that are useful but I still dont know how it works.
This is what i have so far
Private Sub cmdCalculate_Cl ick()
'Calculate the total number of groups, average and total charges.
...
User Profile
Collapse
-
Counting number of clicks
-
Okay, it works now thanks a lot :)
just a thought, is there any other ways i can do it besides using the If statement?... -
Yeah.. this is the most I can think of at the moment ...
Private Sub chkTitle_Click( )
'Display or Hide the Title
chkTitle.Value = 1 <-- This one works perfectly fine
lblTitle.Visibl e = False
chkTitle.Value = 0 <---- this is where my problem is but I dont know
lblTitle.Visibl e = True why I cannot do it like this......Leave a comment:
-
hm.. okay so
chkTitle.Value = 1
lblTitle.Visibl e = False
this works too but My problem is that once i checked it and the Title dissapears I cannot uncheck it... and I dont know how should I put both code together... tried with
chkTitle.Value = 1
lblTitle.Visibl e = False
chkTitle.Value = 0
lblTitle.Visibl e = True
but doesnt work..Thanks for the help :)...Leave a comment:
-
I wrote chkTitle.Value = 1
lblTitle.Captio n = ""
and now when it is in the Run mode, when I check the box the lblTitle.Captio n disappears as I wish
but what should i write so that when i uncheck it (chk.Title.Valu e = 0) , my lblTitle.Captio n = whatever it was...?
i tried to write chkTitle.Value = 0 rigth under lblTitle.Captio n = " " but it doesnt...Leave a comment:
-
Check box codes
How do i write codes in visual basic for check boxes that allow the user to choose to display or hide the the lables without using the if statement? -
Help with writing codes for check boxes, that display/hides the labels
I need to write codes in visual basic for check boxes that "Allow the user choose to display or hide the title, the country name, and the name of the programmer. Use check boxes for the display/hide choices." (in this case, the Lables)
and the instrcutor sepcified that I can not use the If statement. (since he hasnt covered that chapter yet)
Please help... urgent.
No activity results to display
Show More
Leave a comment: