Click here to Skip to main content
15,916,945 members
Home / Discussions / C#
   

C#

 
QuestionHigh Light a part of PictureBox Pin
morteza5718-Sep-06 19:12
morteza5718-Sep-06 19:12 
AnswerRe: High Light a part of PictureBox Pin
Christian Graus18-Sep-06 20:36
protectorChristian Graus18-Sep-06 20:36 
GeneralRe: High Light a part of PictureBox Pin
morteza5718-Sep-06 23:07
morteza5718-Sep-06 23:07 
GeneralRe: High Light a part of PictureBox Pin
Christian Graus18-Sep-06 23:15
protectorChristian Graus18-Sep-06 23:15 
QuestionCreating New string Line Pin
praveenqwe18-Sep-06 18:16
praveenqwe18-Sep-06 18:16 
AnswerRe: Creating New string Line Pin
stancrm18-Sep-06 20:11
stancrm18-Sep-06 20:11 
QuestionEMC (electronic Medical claim) Pin
sonicsqwirl18-Sep-06 17:19
sonicsqwirl18-Sep-06 17:19 
QuestionMidi to wave Pin
ahjiang18-Sep-06 16:33
ahjiang18-Sep-06 16:33 
QuestionRuntime Error -- Writing to a File (FileStreams) Pin
midnitrcr18-Sep-06 11:51
midnitrcr18-Sep-06 11:51 
AnswerRe: Runtime Error -- Writing to a File (FileStreams) Pin
Christian Graus18-Sep-06 12:46
protectorChristian Graus18-Sep-06 12:46 
GeneralRe: Runtime Error -- Writing to a File (FileStreams) Pin
midnitrcr19-Sep-06 5:17
midnitrcr19-Sep-06 5:17 
QuestionHow to hide horizontal scroll bar in listview Pin
amymarie318-Sep-06 11:51
amymarie318-Sep-06 11:51 
AnswerRe: How to hide horizontal scroll bar in listview Pin
amymarie319-Sep-06 9:08
amymarie319-Sep-06 9:08 
QuestionTreview Context menu shortcut keys Pin
Saamir18-Sep-06 9:58
Saamir18-Sep-06 9:58 
Questionerror 80040154 at instantiation of COM object Pin
mkrelli18-Sep-06 9:17
mkrelli18-Sep-06 9:17 
QuestionAdding data to an Array Pin
Saamir18-Sep-06 8:58
Saamir18-Sep-06 8:58 
Hi guys,
I need some help please, I have a listbox with certain data that I am processing and adding every selected item processed into an array. Here is my code.
StringCollection scolBrn=null;
scolBrn= new StringCollection();
string[] arrTemp=null;
while(lbSelBranches.SelectedItems.Count!=0 || lbSelBranches.Items.Count!=0)
{
lbSelBranches.SelectedIndex=0;
char sep1='*';
arrTemp=lbSelBranches.SelectedItem.ToString().Split(sep1);
scolBrn.Add(arrTemp[arrTemp.GetLowerBound(0)]);
lbSelBranches.Items.Remove(lbSelBranches.SelectedItem);
}

What I am trying to do is for every selected item get the lower bound and add it to the string collection and than go through the next selected item and add it again to the string collection, i.e. if the first selected item is 010 blah blah and the second item in list is 020 blah blah than the string collection at the end of processing should have 010020.
Please help guys



sasa

AnswerRe: Adding data to an Array Pin
Guffa18-Sep-06 9:09
Guffa18-Sep-06 9:09 
QuestionShowing unused drive letters Pin
numbers1thru918-Sep-06 8:36
numbers1thru918-Sep-06 8:36 
AnswerRe: Showing unused drive letters Pin
Christian Graus18-Sep-06 12:47
protectorChristian Graus18-Sep-06 12:47 
QuestionVariable/Collection contents seems to change between calls Pin
jimbobmcgee18-Sep-06 8:16
jimbobmcgee18-Sep-06 8:16 
QuestionUnable to open shim database version registry key - v2.0.50727.00000 Pin
yarns18-Sep-06 6:40
yarns18-Sep-06 6:40 
AnswerRe: Unable to open shim database version registry key - v2.0.50727.00000 Pin
Rob Graham18-Sep-06 7:32
Rob Graham18-Sep-06 7:32 
QuestionConfirm Email Address Pin
yesufollower18-Sep-06 5:30
yesufollower18-Sep-06 5:30 
AnswerRe: Confirm Email Address Pin
Ed.Poore18-Sep-06 5:35
Ed.Poore18-Sep-06 5:35 
AnswerRe: Confirm Email Address Pin
Guffa18-Sep-06 6:07
Guffa18-Sep-06 6:07 

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.