Click here to Skip to main content
15,924,317 members
Home / Discussions / C#
   

C#

 
AnswerRe: calling the "hhctrl.ocx" Pin
Ed.Poore22-Nov-06 3:51
Ed.Poore22-Nov-06 3:51 
AnswerRe: calling the "hhctrl.ocx" Pin
Eric Dahlvang22-Nov-06 4:04
Eric Dahlvang22-Nov-06 4:04 
QuestionFind out if an Excel file is currently open Pin
bhattab22-Nov-06 3:36
bhattab22-Nov-06 3:36 
AnswerRe: Find out if an Excel file is currently open Pin
ednrgc22-Nov-06 7:07
ednrgc22-Nov-06 7:07 
Questionchecked list view items Pin
numbers1thru922-Nov-06 3:25
numbers1thru922-Nov-06 3:25 
AnswerRe: checked list view items Pin
Ed.Poore22-Nov-06 3:53
Ed.Poore22-Nov-06 3:53 
GeneralRe: checked list view items Pin
numbers1thru922-Nov-06 4:12
numbers1thru922-Nov-06 4:12 
GeneralRe: checked list view items Pin
Ed.Poore22-Nov-06 4:24
Ed.Poore22-Nov-06 4:24 
How about when you add an item to the list view use the "Tag" property to indicate that it's just been added and thus ignore it later in the code:

private void AddItemToList()
{
 ListViewItem lvi = new ListViewItem("New Item");
 lvi.Tag = "ItemJustAdded";
 this.listView.Items.Add(lvi);
}

private void listView_ItemChecked(object sender, ItemCheckedEventArgs e)
{
 if (e.Item.Tag == "ItemJustAdded")
  return;
 // Do normal check stuff here.
}



Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9

Ed

GeneralRe: checked list view items Pin
Dan Neely22-Nov-06 4:56
Dan Neely22-Nov-06 4:56 
GeneralRe: checked list view items Pin
Ed.Poore22-Nov-06 5:27
Ed.Poore22-Nov-06 5:27 
AnswerRe: checked list view items Pin
Eric Dahlvang22-Nov-06 4:18
Eric Dahlvang22-Nov-06 4:18 
Questionhow to use two different font in a textbox Pin
Kamalatharsan22-Nov-06 3:02
Kamalatharsan22-Nov-06 3:02 
AnswerRe: how to use two different font in a textbox Pin
Karthik Kalyanasundaram22-Nov-06 3:28
Karthik Kalyanasundaram22-Nov-06 3:28 
AnswerRe: how to use two different font in a textbox Pin
Manithar22-Nov-06 3:37
Manithar22-Nov-06 3:37 
QuestionReturning a list of installed Database Providers Pin
martin_hughes22-Nov-06 2:59
martin_hughes22-Nov-06 2:59 
AnswerRe: Returning a list of installed Database Providers Pin
lost in transition 22-Nov-06 9:16
lost in transition 22-Nov-06 9:16 
QuestionConnection open while sending Email with SmtpClient Pin
logicaldna22-Nov-06 2:10
logicaldna22-Nov-06 2:10 
AnswerRe: Connection open while sending Email with SmtpClient Pin
ednrgc22-Nov-06 2:28
ednrgc22-Nov-06 2:28 
GeneralRe: Connection open while sending Email with SmtpClient Pin
logicaldna22-Nov-06 2:50
logicaldna22-Nov-06 2:50 
AnswerRe: Connection open while sending Email with SmtpClient Pin
coolestCoder22-Nov-06 2:43
coolestCoder22-Nov-06 2:43 
GeneralRe: Connection open while sending Email with SmtpClient Pin
logicaldna22-Nov-06 2:48
logicaldna22-Nov-06 2:48 
GeneralRe: Connection open while sending Email with SmtpClient Pin
ednrgc22-Nov-06 3:11
ednrgc22-Nov-06 3:11 
GeneralRe: Connection open while sending Email with SmtpClient Pin
logicaldna22-Nov-06 3:15
logicaldna22-Nov-06 3:15 
GeneralRe: Connection open while sending Email with SmtpClient Pin
ednrgc22-Nov-06 3:16
ednrgc22-Nov-06 3:16 
GeneralRe: Connection open while sending Email with SmtpClient Pin
logicaldna22-Nov-06 3:19
logicaldna22-Nov-06 3:19 

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.