Click here to Skip to main content
16,004,974 members
Home / Discussions / C#
   

C#

 
Generalfinding the program files directory Pin
Mridang Agarwalla16-Dec-04 21:39
Mridang Agarwalla16-Dec-04 21:39 
GeneralRe: finding the program files directory Pin
Mathew Hall16-Dec-04 22:36
Mathew Hall16-Dec-04 22:36 
Questiona problem of code pucker ? Pin
sssa200016-Dec-04 21:32
sssa200016-Dec-04 21:32 
GeneralAutocomplete Pin
Mridang Agarwalla16-Dec-04 21:28
Mridang Agarwalla16-Dec-04 21:28 
Generaltriggering events by code Pin
Mridang Agarwalla16-Dec-04 21:22
Mridang Agarwalla16-Dec-04 21:22 
GeneralRe: triggering events by code Pin
Jay Shankar16-Dec-04 22:43
Jay Shankar16-Dec-04 22:43 
GeneralRe: triggering events by code Pin
Mridang Agarwalla19-Dec-04 23:49
Mridang Agarwalla19-Dec-04 23:49 
GeneralRe: triggering events by code Pin
Jay Shankar20-Dec-04 13:41
Jay Shankar20-Dec-04 13:41 
Hi Mridang,

First of all, please go through the msdn documents CheckBox.CheckedChanged[^]

It should fire. There is no bug in the .net, concerning this.

As I said in my previous post, check using again.

this.checkbox.Checked = !this.checkbox.Checked;


or
private void ChangeCheckBoxState(CheckBox cbx)
{
	cbx.Checked = !cbx.Checked;
	
	System.Diagnostics.Debug.WriteLine("checked state transformed to  " + this.checkBox1.Checked);
}


//

private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
{
	MessageBox.Show("Check Changed");

}


You can explicitly also call the event handler, just to reconfirm as

this.checkBox1_CheckedChanged(this, new System.EventArgs());


I would also advice you to prepare a simple demo project to check the above phenomenon.



Regards,

Jay.
Generalwindow class name Pin
NikoTanghe16-Dec-04 20:37
NikoTanghe16-Dec-04 20:37 
GeneralRe: window class name Pin
Heath Stewart16-Dec-04 23:57
protectorHeath Stewart16-Dec-04 23:57 
GeneralEvents problem in C# Forms Pin
raosundar16-Dec-04 18:55
raosundar16-Dec-04 18:55 
GeneralRe: Events problem in C# Forms Pin
Jay Shankar16-Dec-04 19:41
Jay Shankar16-Dec-04 19:41 
GeneralSyntax highlighting... please help! Pin
16-Dec-04 15:58
suss16-Dec-04 15:58 
GeneralRe: Syntax highlighting... please help! Pin
Heath Stewart16-Dec-04 23:48
protectorHeath Stewart16-Dec-04 23:48 
Generaladding command button column to ListViewControl Pin
ronin177016-Dec-04 15:19
ronin177016-Dec-04 15:19 
GeneralRe: adding command button column to ListViewControl Pin
Heath Stewart16-Dec-04 23:41
protectorHeath Stewart16-Dec-04 23:41 
GeneralCommunication problem Pin
crashhog16-Dec-04 14:53
crashhog16-Dec-04 14:53 
GeneralRe: Communication problem Pin
leppie16-Dec-04 20:06
leppie16-Dec-04 20:06 
Generalxml in multi-user enviroment Pin
esakal16-Dec-04 12:54
esakal16-Dec-04 12:54 
GeneralRe: xml in multi-user enviroment Pin
Stefan Troschuetz16-Dec-04 21:28
Stefan Troschuetz16-Dec-04 21:28 
GeneralRe: xml in multi-user enviroment Pin
Dave Kreskowiak17-Dec-04 6:31
mveDave Kreskowiak17-Dec-04 6:31 
GeneralDebbuger hangs and kills my form Pin
SebbaP16-Dec-04 10:10
SebbaP16-Dec-04 10:10 
GeneralListView columns show up overlapped Pin
kmansari16-Dec-04 9:32
kmansari16-Dec-04 9:32 
GeneralRe: ListView columns show up overlapped Pin
Skynyrd16-Dec-04 9:54
Skynyrd16-Dec-04 9:54 
GeneralRe: ListView columns show up overlapped Pin
kmansari16-Dec-04 10:00
kmansari16-Dec-04 10:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.