Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET WinForm
Hi all
 
I am trying to check one condition when i m checking a particular checkbox.below is the code
 
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 4-Nov-12 19:57pm
Edited 4-Nov-12 21:44pm
v2
Comments
Sergey Alexandrovich Kryukov at 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
snehasish nandy at 5-Nov-12 1:18am
   
see that part is not my concern..my problem is it's not hitting the CheckBox4_CheckedChanged() event..
aspnet_regiis -i at 5-Nov-12 1:54am
   
Okay.. So is it a web app or windows?
snehasish nandy at 5-Nov-12 1:56am
   
It's windows app...
aspnet_regiis -i at 5-Nov-12 2:20am
   
Did you check the form1.designer.vb if the event handler is generated for the particular event ?
snehasish nandy at 5-Nov-12 2:22am
   
yes...
aspnet_regiis -i at 5-Nov-12 2:29am
   
So is the event generated?
aspnet_regiis -i at 5-Nov-12 2:35am
   
Why have you tagged this question with 'sql server' . You should have used 'winforms' instead
snehasish nandy at 5-Nov-12 2:44am
   
ya event is generated...
aspnet_regiis -i at 5-Nov-12 3:52am
   
Ok.. now do one thing. Delete the checkbox from the Form , compile the project, add the checkbox again and generate the event .....
Shahan Ayyub at 6-Nov-12 5:11am
   
Have you used "RemoveHandler" in designer.vb or .vb file ?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100