Click here to Skip to main content
16,005,054 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
Ennis Ray Lynch, Jr.20-Aug-06 6:05
Ennis Ray Lynch, Jr.20-Aug-06 6:05 
GeneralRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
hkim_zoro24-Aug-06 1:30
hkim_zoro24-Aug-06 1:30 
QuestionError : Class Not Registered Pin
venkatttttttttttt18-Aug-06 0:43
venkatttttttttttt18-Aug-06 0:43 
AnswerRe: Error : Class Not Registered Pin
Christian Graus18-Aug-06 1:26
protectorChristian Graus18-Aug-06 1:26 
Questionhow to join two datatables in dataset? (no SQL)[modified] Pin
sheetal alaspure17-Aug-06 23:11
sheetal alaspure17-Aug-06 23:11 
AnswerRe: how to join two datatables in dataset? (no SQL)[modified] Pin
sheetal alaspure18-Aug-06 1:43
sheetal alaspure18-Aug-06 1:43 
Questionstore picture Pin
Mohammed Elkholy17-Aug-06 23:05
Mohammed Elkholy17-Aug-06 23:05 
QuestionComboBox is not refreshing it's text on SelectedItem Pin
Ed.Poore17-Aug-06 23:01
Ed.Poore17-Aug-06 23:01 
I have several ComboBoxes which have a string "(null)" added as the first item and then the rest of the list is populated from a List (of strongly-typed classes).

When I try and set the SelectedItem (or SelectedIndex) property, internally it is selected but it's not updating the UI. E.g.

if (itemToLoad == null)
{
  comboBox.SelectedItem = "(null)";
  // Or tried alternatively
  // comboBox.SelectedIndex = comboBox.Items.IndexOf("(null)");
}
else
{
  comboBox.SelectedItem = itemToLoad;
  // Or tried alternatively
  // comboBox.SelectedIndex = comboBox.Items.IndexOf(itemToLoad);
}


Now if in the debugger (or later on in the code) the SelectedItem is queried it shows that comboBox has the correct item selected but it has not changed the text in comboBox to reflect the change.

Any ideas on why this is happening and/or how to fix it?


Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9

Ed

AnswerRe: ComboBox is not refreshing it's text on SelectedItem Pin
Ed.Poore17-Aug-06 23:33
Ed.Poore17-Aug-06 23:33 
QuestionSetup projects Pin
V.17-Aug-06 22:50
professionalV.17-Aug-06 22:50 
AnswerRe: Setup projects [modified] Pin
Andrei Ungureanu18-Aug-06 0:23
Andrei Ungureanu18-Aug-06 0:23 
GeneralRe: Setup projects Pin
V.18-Aug-06 2:47
professionalV.18-Aug-06 2:47 
QuestionHow To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 22:07
Coding C#17-Aug-06 22:07 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
Stefan Troschuetz17-Aug-06 22:18
Stefan Troschuetz17-Aug-06 22:18 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 22:37
Coding C#17-Aug-06 22:37 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Stefan Troschuetz17-Aug-06 23:23
Stefan Troschuetz17-Aug-06 23:23 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 23:56
Coding C#17-Aug-06 23:56 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
Robert Rohde18-Aug-06 0:19
Robert Rohde18-Aug-06 0:19 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#18-Aug-06 0:54
Coding C#18-Aug-06 0:54 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
User 665818-Aug-06 3:56
User 665818-Aug-06 3:56 
AnswerRe: How To Validating Float,Date,Time in C#? Pin
coolestCoder17-Aug-06 22:44
coolestCoder17-Aug-06 22:44 
GeneralRe: How To Validating Float,Date,Time in C#? Pin
Coding C#17-Aug-06 22:47
Coding C#17-Aug-06 22:47 
QuestionDeploying application on client machine (LAN) Pin
abhinish17-Aug-06 21:48
abhinish17-Aug-06 21:48 
AnswerRe: Deploying application on client machine (LAN) Pin
coolestCoder17-Aug-06 21:59
coolestCoder17-Aug-06 21:59 
GeneralRe: Deploying application on client machine (LAN) Pin
abhinish17-Aug-06 22:21
abhinish17-Aug-06 22:21 

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.