Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NETWinForm
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 18:57pm
Edited 4-Nov-12 20: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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Guruprasad.K.Basavaraju 390
1 Shai Vashdi 349
2 Sergey Alexandrovich Kryukov 325
3 OriginalGriff 265
4 Peter Leow 171
0 Sergey Alexandrovich Kryukov 8,979
1 OriginalGriff 5,280
2 Peter Leow 4,010
3 Maciej Los 3,535
4 Abhinav S 3,263


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