Click here to Skip to main content
15,923,789 members
Home / Discussions / C#
   

C#

 
AnswerRe: Setting up a C# Programming Club/Study Class Pin
Christian Graus24-Mar-07 4:36
protectorChristian Graus24-Mar-07 4:36 
GeneralRe: Setting up a C# Programming Club/Study Class Pin
DanFraser224-Mar-07 6:02
DanFraser224-Mar-07 6:02 
Questionhow to handle the System.Web.Mail Exceptions effectively.? Pin
sundar15624-Mar-07 3:06
sundar15624-Mar-07 3:06 
AnswerRe: how to handle the System.Web.Mail Exceptions effectively.? Pin
kubben24-Mar-07 4:22
kubben24-Mar-07 4:22 
GeneralRe: how to handle the System.Web.Mail Exceptions effectively.? Pin
sundar15624-Mar-07 5:14
sundar15624-Mar-07 5:14 
Questionformat of text Not appear as i save in file Pin
Ahmed R El Bohoty24-Mar-07 2:17
Ahmed R El Bohoty24-Mar-07 2:17 
AnswerRe: format of text Not appear as i save in file Pin
kubben24-Mar-07 2:56
kubben24-Mar-07 2:56 
Questionhow to handle ItemCheck Event of CHECKEDLISTBox Pin
pashitech24-Mar-07 1:08
pashitech24-Mar-07 1:08 
hi all, here i am getting an error saying """Object reference not set to an instance of an object.""""

here i am catching[storing] all the selected values of checkedlistbox[chklstMultipleMdfyTbl] in to my listbox[lstChcked]
for that i've written code in ItemCheck event of CHECKELISTBOX
The code is --->
private void checkedListBox1_ItemCheck(object sender, ItemCheckEventArgs e)
{
if (e.NewValue == CheckState.Unchecked)
{
lstChcked.Items.Remove(chklstMultipleMdfyTbl.SelectedItem.ToString());
}
else if (e.NewValue == CheckState.Checked)
{
lstChcked.Items.Add(chklstMultipleMdfyTbl.SelectedItem.ToString());
}
}



but the thing is i am catching the default select values in the pageload event, so its making me into troble
so is it possible to block the ABOVE CODE while Page Is Loading--i mean for the firsttime?

For Ur Referenct My PageLoad CODE is -->
private void frmCustomizeParams_Load(object sender, EventArgs e)
{

TestingBoard.XMLTasks GetLasersProperties = new TestingBoard.XMLTasks();
string[] LaserChecking = new string[xmltask.GetLaserPropCount("tabular", "property")];
bool[] chkedList = new bool[xmltask.GetLaserPropCount("tabular", "property")];

LaserChecking = GetLasersProperties.GetLaserProp("tabular", "property");
chkedList = GetAllLaserPropchk("tabular", "property");
for (int i = 0; i < LaserChecking.Length; i++)
{
chklstMultipleMdfyTbl.Items.Add(LaserChecking[i], chkedList[i]);

if (chkedList[i])
{
lstChcked.Items.Add(LaserChecking[i]);
}
}
}



PLEASE HELP ME

PLEASE HELP ME

pashi A
AnswerRe: how to handle ItemCheck Event of CHECKEDLISTBox Pin
Stefan Troschuetz24-Mar-07 1:26
Stefan Troschuetz24-Mar-07 1:26 
GeneralRe: how to handle ItemCheck Event of CHECKEDLISTBox Pin
pashitech24-Mar-07 1:38
pashitech24-Mar-07 1:38 
GeneralRe: how to handle ItemCheck Event of CHECKEDLISTBox Pin
Stefan Troschuetz24-Mar-07 1:47
Stefan Troschuetz24-Mar-07 1:47 
GeneralRe: how to handle ItemCheck Event of CHECKEDLISTBox Pin
pashitech25-Mar-07 21:29
pashitech25-Mar-07 21:29 
QuestionDateTime in C# Pin
Hakkim00724-Mar-07 0:48
Hakkim00724-Mar-07 0:48 
AnswerRe: DateTime in C# Pin
Stefan Troschuetz24-Mar-07 1:20
Stefan Troschuetz24-Mar-07 1:20 
GeneralRe: DateTime in C# Pin
Tauseef A24-Mar-07 3:15
Tauseef A24-Mar-07 3:15 
AnswerRe: DateTime in C# Pin
Christian Graus24-Mar-07 4:37
protectorChristian Graus24-Mar-07 4:37 
QuestionDropdown Selected Value Pin
Muhammad Faisal Khanani24-Mar-07 0:13
Muhammad Faisal Khanani24-Mar-07 0:13 
AnswerRe: Dropdown Selected Value Pin
Sandeep Akhare24-Mar-07 0:58
Sandeep Akhare24-Mar-07 0:58 
GeneralRe: Dropdown Selected Value Pin
Muhammad Faisal Khanani24-Mar-07 3:26
Muhammad Faisal Khanani24-Mar-07 3:26 
QuestionPlaying a video mpeg stream through Media Player Pin
Ghoditsttoawn23-Mar-07 23:46
Ghoditsttoawn23-Mar-07 23:46 
QuestionHow to display a human readable GUID? Pin
davidnr23-Mar-07 23:38
davidnr23-Mar-07 23:38 
AnswerRe: How to display a human readable GUID? Pin
Mark Greenwood24-Mar-07 1:42
Mark Greenwood24-Mar-07 1:42 
GeneralRe: How to display a human readable GUID? Pin
davidnr24-Mar-07 14:14
davidnr24-Mar-07 14:14 
QuestionAccessing Parallel Port Pin
Rohit Dev23-Mar-07 22:59
Rohit Dev23-Mar-07 22:59 
AnswerRe: Accessing Parallel Port Pin
Stefan Troschuetz23-Mar-07 23:21
Stefan Troschuetz23-Mar-07 23:21 

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.