Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

flag viewer in vb6 not vb.net

Posted on 2006-07-21
4
631 Views
Last Modified: 2013-12-25
I programming a flag viewer with a chk box. I'm not using vb.net but vb6.
So I don't have a .checked option.
How can I program a chk box so the caption appears and diappears. when chked or unchked.
This is what I have so far:
Private Sub chkProgramer_Click()
    'Displays programmers name.

     lblName.Caption = "David Malone"
   
    End Sub
The name appears when chk box is unchked only.
But the name stays no matter how mant times I chk or unchk the box.
0
Comment
Question by:dmalonel
4 Comments
 
LVL 5

Accepted Solution

by:
Davidshc76 earned 125 total points
ID: 17158790
Private Sub chkProgramer_Click()
    If chkProgramer.Value = 0 Then 'uncheck chk box
       lblName.Caption = "David Malone"
    ElseIf chkProgramer.Value = 1 Then 'check chk box
       lblName.Caption = ""
    End If
End Sub
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question