User Profile

Collapse

Profile Sidebar

Collapse
bupanda
bupanda
Last Activity: May 4 '07, 11:22 AM
Joined: Apr 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bupanda
    started a topic Counting number of clicks

    Counting number of clicks

    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.

    ...
    See more | Go to post

  • bupanda
    replied to Check box codes
    Okay, it works now thanks a lot :)
    just a thought, is there any other ways i can do it besides using the If statement?...
    See more | Go to post

    Leave a comment:


  • bupanda
    replied to Check box codes
    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......
    See more | Go to post

    Leave a comment:


  • bupanda
    replied to Check box codes
    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 :)...
    See more | Go to post

    Leave a comment:


  • bupanda
    replied to Check box codes
    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...
    See more | Go to post

    Leave a comment:


  • bupanda
    started a topic Check box codes

    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?
    See more | Go to post

  • 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.
    See more | Go to post
No activity results to display
Show More
Working...