Click here to Skip to main content
15,881,967 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi all

I am trying to check one condition when i m checking a particular checkbox.below is the code

VB
Private Sub CheckBox4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox4.CheckedChanged
        If CheckBox4.Checked = True Then
            check_CL()
        End If



i put one debugger to check whether the control is going to this event or not but it's not going.please tell me what is the problem..
Posted
Updated 4-Nov-12 20:44pm
v2
Comments
Sergey Alexandrovich Kryukov 5-Nov-12 1:05am    
If something = True then '...

demonstrates the lack of understanding of something very basic in programming. Because this is the same as

If something then '...

Comparison of Boolean with True is pointless.
--SA
[no name] 5-Nov-12 1:18am    
see that part is not my concern..my problem is it's not hitting the CheckBox4_CheckedChanged() event..
bbirajdar 5-Nov-12 1:54am    
Okay.. So is it a web app or windows?
[no name] 5-Nov-12 1:56am    
It's windows app...
bbirajdar 5-Nov-12 2:20am    
Did you check the form1.designer.vb if the event handler is generated for the particular event ?

1 solution

hi dear

just go to designer again
==> select CheckBox4
==> rightClick
==> property
==> go to Event
==> select "CheckBox4_CheckedChanged"

just do this thing, i hope you will get solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900