Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
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 
Nice. I'm still not sure how it all works, and why it did what it did, and doesn't any more.
What would be wrong with:
this.data.Add(this.txtEditEntry.Text);
//RefreshDataBoundControls();      <============== Disabled
this.lboxEntries.ClearSelected();
//this.lboxEntries.Update();  <=================== Disabled
this.lboxEntries.SelectedIndex = data.Count - 1;

?

1. if RefreshDataBoundControls is repopulating the ListBox, the added line should be gone? and if it isn't, what *is* it doing?

2. the Update() only has a visual effect, it should be all right as soon as your current handler is done anyway.

I'm going to investigate later, I'm off now.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


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 
QuestionHost WPF application on WEB Pin
VisualLive22-Oct-10 0:15
VisualLive22-Oct-10 0:15 
AnswerRe: Host WPF application on WEB Pin
Simon P Stevens22-Oct-10 1:13
Simon P Stevens22-Oct-10 1:13 
AnswerRe: Host WPF application on WEB Pin
#realJSOP22-Oct-10 1:41
mve#realJSOP22-Oct-10 1:41 
AnswerRe: Host WPF application on WEB Pin
Nish Nishant22-Oct-10 2:02
sitebuilderNish Nishant22-Oct-10 2:02 
GeneralRe: Host WPF application on WEB Pin
Abhinav S22-Oct-10 2:47
Abhinav S22-Oct-10 2:47 
GeneralRe: Host WPF application on WEB Pin
Nish Nishant22-Oct-10 4:15
sitebuilderNish Nishant22-Oct-10 4:15 
AnswerRe: Host WPF application on WEB Pin
Abhinav S22-Oct-10 2:46
Abhinav S22-Oct-10 2:46 
GeneralRe: Host WPF application on WEB Pin
VisualLive23-Oct-10 19:17
VisualLive23-Oct-10 19:17 
QuestionFind Label in Gridview Footer Row in javascript Pin
SatyaKeerthi1521-Oct-10 23:33
SatyaKeerthi1521-Oct-10 23:33 
AnswerRe: Find Label in Gridview Footer Row in javascript Pin
OriginalGriff22-Oct-10 1:10
mveOriginalGriff22-Oct-10 1:10 
AnswerRe: Find Label in Gridview Footer Row in javascript Pin
Abhinav S22-Oct-10 3:06
Abhinav S22-Oct-10 3:06 

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.