Click here to Skip to main content
15,921,793 members
Home / Discussions / C#
   

C#

 
Questionenconding style ERROR Pin
Campaniço20-Sep-05 23:44
Campaniço20-Sep-05 23:44 
Questionwindows service Pin
Mridang Agarwalla20-Sep-05 21:54
Mridang Agarwalla20-Sep-05 21:54 
Questionhow to make it work?? Pin
shanzy20-Sep-05 21:52
shanzy20-Sep-05 21:52 
AnswerRe: how to make it work?? Pin
Guffa20-Sep-05 21:55
Guffa20-Sep-05 21:55 
AnswerRe: how to make it work?? Pin
mav.northwind20-Sep-05 22:01
mav.northwind20-Sep-05 22:01 
GeneralRe: how to make it work?? Pin
shanzy20-Sep-05 22:05
shanzy20-Sep-05 22:05 
AnswerRe: how to make it work?? Pin
Luis Alonso Ramos21-Sep-05 5:47
Luis Alonso Ramos21-Sep-05 5:47 
QuestionAbout Remoting Pin
baskar.G20-Sep-05 19:13
baskar.G20-Sep-05 19:13 
AnswerRe: About Remoting Pin
akshayswaroop21-Sep-05 3:22
akshayswaroop21-Sep-05 3:22 
QuestionReading Emails from Exchange Server;MSXML 2.6, XMLHTTP Problem Pin
Member 185593520-Sep-05 18:28
Member 185593520-Sep-05 18:28 
QuestionCan you tell me how to custom a arrow with GDI+ Pin
dreamwinter20-Sep-05 17:25
dreamwinter20-Sep-05 17:25 
AnswerRe: Can you tell me how to custom a arrow with GDI+ Pin
Andy Moore20-Sep-05 18:05
Andy Moore20-Sep-05 18:05 
GeneralRe: Can you tell me how to custom a arrow with GDI+ Pin
Andy Moore20-Sep-05 18:06
Andy Moore20-Sep-05 18:06 
AnswerRe: Can you tell me how to custom a arrow with GDI+ Pin
mav.northwind20-Sep-05 20:51
mav.northwind20-Sep-05 20:51 
GeneralRe: Can you tell me how to custom a arrow with GDI+ Pin
dreamwinter22-Sep-05 19:07
dreamwinter22-Sep-05 19:07 
QuestionListBox selection removal Pin
Pyro Joe20-Sep-05 16:42
Pyro Joe20-Sep-05 16:42 
AnswerRe: ListBox selection removal Pin
Luis Alonso Ramos20-Sep-05 18:40
Luis Alonso Ramos20-Sep-05 18:40 
Remove the selected items from the list?
for(int i = lstBox.SelectedItems.Count; i >= 0; i--)
    lstBox.Items.RemoveAt(i);
You have to do it bottom-up. If you do top-down, when you remove an item on the top, the index of the items below it change. You could also do this:
while(lstBox.SelectedItems.Count > 0)
    lstBox.Items.Remove(lstBox.SelectedItems[0]);
but I think the first way is easier to understand.

I hope this helps!

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!


The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
GeneralRe: ListBox selection removal Pin
Pyro Joe21-Sep-05 8:16
Pyro Joe21-Sep-05 8:16 
Questionhelp on threadin Pin
cue_ball20-Sep-05 16:34
cue_ball20-Sep-05 16:34 
AnswerRe: help on threadin Pin
Guffa20-Sep-05 16:43
Guffa20-Sep-05 16:43 
GeneralRe: help on threadin Pin
cue_ball20-Sep-05 16:50
cue_ball20-Sep-05 16:50 
GeneralRe: help on threadin Pin
Guffa20-Sep-05 21:53
Guffa20-Sep-05 21:53 
QuestionButton Click -> to Paint handler?? Pin
Anonymous20-Sep-05 16:15
Anonymous20-Sep-05 16:15 
AnswerRe: Button Click -> to Paint handler?? Pin
Ashok Dhamija20-Sep-05 17:51
Ashok Dhamija20-Sep-05 17:51 
QuestionHelp on threading.. Pin
cue_ball20-Sep-05 15:54
cue_ball20-Sep-05 15:54 

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.