Solved

flag viewer in vb6 not vb.net

Posted on 2006-07-21
4
619 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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now