Click here to Skip to main content
16,016,306 members
Home / Discussions / C#
   

C#

 
GeneralRe: Parsing csv file with commas and quotes as deliminators Pin
OriginalGriff23-Oct-10 3:43
mveOriginalGriff23-Oct-10 3:43 
QuestionClose Pop Up windows Pin
SatyaKeerthi1522-Oct-10 3:11
SatyaKeerthi1522-Oct-10 3:11 
AnswerRe: Close Pop Up windows Pin
Not Active22-Oct-10 3:22
mentorNot Active22-Oct-10 3:22 
QuestionAnnoying ListBox problem [SOLVED] Pin
Henry Minute22-Oct-10 3:10
Henry Minute22-Oct-10 3:10 
AnswerRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 4:35
sitebuilderLuc Pattyn22-Oct-10 4:35 
GeneralRe: Annoying ListBox problem Pin
OriginalGriff22-Oct-10 4:42
mveOriginalGriff22-Oct-10 4:42 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 5:16
sitebuilderLuc Pattyn22-Oct-10 5:16 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 4:46
Henry Minute22-Oct-10 4:46 
Luc Pattyn wrote:
There is that little thingy called documentation[^]


How very true.

Unfortunately, it makes no difference.

C#
this.lboxEntries.ClearSelected();
this.lboxEntries.Update();
this.data.Add(this.txtEditEntry.Text);
RefreshDataBoundControls();
this.lboxEntries.SelectedIndex = data.Count - 1;


has exactly the same result as my pre solution attempts using the various selectedxx properties. The method is useful to know though, so thanks for that Smile | :) .

I realize that my original post might have been misleading in that I referred to the items remaining selected, whereas I should have said they remain highlighted.

Because of my error in explaining the problem I shall refrain from down-voting your otherwise useful response. Big Grin | :-D

[Edit]
This is even more galling, having checked my code-base to find I have used ClearSelected() many times in the past. D'Oh! | :doh: Mad | :mad:
[/Edit]
Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

AnswerRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 5:13
sitebuilderLuc Pattyn22-Oct-10 5:13 
GeneralRe: Annoying ListBox problem Pin
OriginalGriff22-Oct-10 5:14
mveOriginalGriff22-Oct-10 5:14 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 5:17
sitebuilderLuc Pattyn22-Oct-10 5:17 
GeneralRe: Annoying ListBox problem Pin
OriginalGriff22-Oct-10 5:24
mveOriginalGriff22-Oct-10 5:24 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 5:19
sitebuilderLuc Pattyn22-Oct-10 5:19 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 5:30
Henry Minute22-Oct-10 5:30 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 5:59
sitebuilderLuc Pattyn22-Oct-10 5:59 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 6:06
Henry Minute22-Oct-10 6:06 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 6:48
Henry Minute22-Oct-10 6:48 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 7:08
Henry Minute22-Oct-10 7:08 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 7:33
sitebuilderLuc Pattyn22-Oct-10 7:33 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 7:41
Henry Minute22-Oct-10 7:41 
GeneralRe: Annoying ListBox problem Pin
Luc Pattyn22-Oct-10 14:36
sitebuilderLuc Pattyn22-Oct-10 14:36 
GeneralRe: Annoying ListBox problem Pin
Henry Minute22-Oct-10 5:31
Henry Minute22-Oct-10 5:31 
QuestionCrystal Report Formula needed Pin
Nikhil Bhivgade22-Oct-10 1:29
professionalNikhil Bhivgade22-Oct-10 1:29 
AnswerRe: Crystal Report Formula needed [modified] Pin
Sivaraman Dhamodharan22-Oct-10 2:51
Sivaraman Dhamodharan22-Oct-10 2:51 
GeneralRe: Crystal Report Formula needed Pin
Nikhil Bhivgade22-Oct-10 21:35
professionalNikhil Bhivgade22-Oct-10 21:35 

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.