Click here to Skip to main content
15,893,564 members
Home / Discussions / C#
   

C#

 
GeneralRe: Self Extracting File Pin
Varun Jain 7868-Aug-05 3:43
Varun Jain 7868-Aug-05 3:43 
GeneralSelf Extracting file Pin
Anonymous5-Aug-05 21:53
Anonymous5-Aug-05 21:53 
GeneralEncodings problem Pin
AnonymousTwo5-Aug-05 21:16
AnonymousTwo5-Aug-05 21:16 
AnswerRe: Encodings problem Pin
Heath Stewart5-Aug-05 22:21
protectorHeath Stewart5-Aug-05 22:21 
QuestionAssembly with strong name - can it be decompiled and recompiled? Pin
Anonymous5-Aug-05 20:53
Anonymous5-Aug-05 20:53 
AnswerRe: Assembly with strong name - can it be decompiled and recompiled? Pin
mav.northwind5-Aug-05 21:24
mav.northwind5-Aug-05 21:24 
AnswerRe: Assembly with strong name - can it be decompiled and recompiled? Pin
Mohamad Al Husseiny5-Aug-05 21:30
Mohamad Al Husseiny5-Aug-05 21:30 
Generalremove selection of a listbox Pin
Anonymous5-Aug-05 20:21
Anonymous5-Aug-05 20:21 
I had a hard time trying to find a simple way to allow a user to remove the selection of multiple items in a listbox, so after a half hour of experimenting I found a surprisingly simple solution:


//this will remove all of the user's selection<br />
//listBoxName is the name of your listBox, of course<br />
<br />
do<br />
{<br />
     listBoxName.Items.RemoveAt(listBoxName.SelectedIndices[0]);<br />
}<br />
while (listBoxName.SelectedIndices.Count > 0);



We are allowed to always remove the "0th" selection because we are removing as we go, and so the "next" item will become the "0th" item when the current one is deleted. Then in the Do-While loop we just continue until we run out of selected items. Make sense? It seems relatively simple, but I wasn't able to find any similar help so i figured id post here in case someone else runs into the same problem.
GeneralCreating msn like alerts Pin
JXpert5-Aug-05 20:11
JXpert5-Aug-05 20:11 
GeneralRe: Creating msn like alerts Pin
Mohamad Al Husseiny5-Aug-05 21:39
Mohamad Al Husseiny5-Aug-05 21:39 
Question.net applications in .jpg files? Pin
Kir Birger5-Aug-05 19:14
Kir Birger5-Aug-05 19:14 
AnswerRe: .net applications in .jpg files? Pin
Guffa5-Aug-05 22:57
Guffa5-Aug-05 22:57 
GeneralRe: .net applications in .jpg files? Pin
Kir Birger6-Aug-05 10:24
Kir Birger6-Aug-05 10:24 
GeneralRe: .net applications in .jpg files? Pin
Guffa6-Aug-05 23:15
Guffa6-Aug-05 23:15 
GeneralRe: .net applications in .jpg files? Pin
Kir Birger7-Aug-05 4:31
Kir Birger7-Aug-05 4:31 
GeneralRe: .net applications in .jpg files? Pin
Guffa7-Aug-05 20:48
Guffa7-Aug-05 20:48 
GeneralRe: .net applications in .jpg files? Pin
Kir Birger8-Aug-05 6:50
Kir Birger8-Aug-05 6:50 
GeneralRe: .net applications in .jpg files? Pin
Guffa8-Aug-05 22:59
Guffa8-Aug-05 22:59 
GeneralRe: .net applications in .jpg files? Pin
Kir Birger9-Aug-05 2:55
Kir Birger9-Aug-05 2:55 
GeneralRe: .net applications in .jpg files? Pin
DavidNohejl7-Aug-05 4:37
DavidNohejl7-Aug-05 4:37 
GeneralRe: .net applications in .jpg files? Pin
Kir Birger8-Aug-05 6:52
Kir Birger8-Aug-05 6:52 
GeneralCould you... Pin
KORCARI5-Aug-05 18:44
KORCARI5-Aug-05 18:44 
GeneralRe: Could you... Pin
tatchung5-Aug-05 21:12
tatchung5-Aug-05 21:12 
QuestionCan't convert to Format8bppIndexed with LockBits, Why? Pin
s2l5-Aug-05 14:07
s2l5-Aug-05 14:07 
GeneralCombobox in listview Pin
Rob Tomson5-Aug-05 13:54
Rob Tomson5-Aug-05 13: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.