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

C#

 
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 
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 
Henry, I thought Luc's answer was fine - I just checked:
1) New form, dump a ListBox, call it lbTest.
2) Set SelectionMode to MultiExtended
3) Add a Button, call it butClear.
4) Form Load event:
private void frmNewTest_Load(object sender, EventArgs e)
    {
    lbTest.Items.Add("Hello1");
    lbTest.Items.Add("Hello2");
    lbTest.Items.Add("Hello3");
    lbTest.Items.Add("Hello4");
    lbTest.Items.Add("Hello5");
    lbTest.Items.Add("Hello6");
    lbTest.Items.Add("Hello7");
    }
5) Button click event:
private void butClear_Click(object sender, EventArgs e)
    {
    lbTest.ClearSelected();
    }
6)Select many lines with Shift and Control.
7) Press button.

My selection and highlight disappear, as I would expect.
What are you doing that is so different?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

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 
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 

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.