Click here to Skip to main content
11,715,043 members (62,517 online)
Rate this: bad
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
        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
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.
snehasish nandy at 5-Nov-12 1:18am
see that part is not 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
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
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.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 530
1 Richard MacCutchan 275
2 Maciej Los 259
3 ManasKumarM 155
4 Frankie-C 115
0 Sergey Alexandrovich Kryukov 775
1 CHill60 415
2 Richard MacCutchan 405
3 Maciej Los 389
4 OriginalGriff 320

Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 6 Nov 2012
Copyright © CodeProject, 1999-2015
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