?
Solved

flag viewer in vb6 not vb.net

Posted on 2006-07-21
4
Medium Priority
?
647 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
[X]
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
4 Comments
 
LVL 5

Accepted Solution

by:
Davidshc76 earned 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

801 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