Click here to Skip to main content
15,902,112 members
Home / Discussions / C#
   

C#

 
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 
QuestionGUI optimization Pin
Scarsymmetry18-Sep-06 5:10
Scarsymmetry18-Sep-06 5:10 
AnswerRe: GUI optimization Pin
wheelerbarry18-Sep-06 5:32
wheelerbarry18-Sep-06 5:32 
AnswerRe: GUI optimization Pin
Rob Graham18-Sep-06 5:40
Rob Graham18-Sep-06 5:40 
AnswerRe: GUI optimization Pin
Not Active18-Sep-06 5:43
mentorNot Active18-Sep-06 5:43 
QuestionR/W in Microsoft Access Pin
CodeItWell18-Sep-06 5:03
CodeItWell18-Sep-06 5:03 
AnswerRe: R/W in Microsoft Access Pin
Rob Graham18-Sep-06 7:09
Rob Graham18-Sep-06 7:09 
Questionhow to display all the cells containing an certain letter and hiding the others in datagrid Pin
faladrim18-Sep-06 4:20
faladrim18-Sep-06 4:20 
AnswerRe: how to display all the cells containing an certain letter and hiding the others in datagrid Pin
wheelerbarry18-Sep-06 4:37
wheelerbarry18-Sep-06 4:37 

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.