Click here to Skip to main content
15,885,914 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Programmatically Change a Property in DesignMode Pin
Martin#31-Jul-07 12:15
Martin#31-Jul-07 12:15 
QuestionRe: How to Programmatically Change a Property in DesignMode Pin
Cnight Stalker31-Jul-07 12:57
Cnight Stalker31-Jul-07 12:57 
AnswerRe: How to Programmatically Change a Property in DesignMode Pin
Martin#31-Jul-07 20:46
Martin#31-Jul-07 20:46 
GeneralRe: How to Programmatically Change a Property in DesignMode Pin
Cnight Stalker1-Aug-07 10:18
Cnight Stalker1-Aug-07 10:18 
GeneralRe: How to Programmatically Change a Property in DesignMode Pin
Martin#1-Aug-07 20:56
Martin#1-Aug-07 20:56 
NewsRe: How to Programmatically Change a Property in DesignMode Pin
Cnight Stalker2-Aug-07 15:08
Cnight Stalker2-Aug-07 15:08 
GeneralRe: How to Programmatically Change a Property in DesignMode Pin
Martin#2-Aug-07 20:43
Martin#2-Aug-07 20:43 
QuestionUpdating/changing Items in a ListBox with a TextBox Pin
stephan.smolek31-Jul-07 9:49
stephan.smolek31-Jul-07 9:49 
Hello,
I currently have the problem that I want to update the contents (a string) of an item of a listbox with a textbox. Best would be on-the-fly so I tried listBox1.Items[listBox1.SelectedIndex] = textBox1.Text in TextChanged.
However I also want to be able to select which item to update by selecting the item in that very listbox. So I do something like textBox1.Text = listBox1.Items[listBox1.SelectedIndex] in SelectedIndexChanged of the listbox. (I say "something like" because the information includes other numbers that are also stored in a list along with the text.)
The problem with that is that selecting an item changes the text in the textbox and that again updates the item which implicitly calls an SelectedIndexChanged again (or so it seems). And during that updating of the listbox it happens that the selectedindex changes to -1. Which is a problem if you try to read that item...
I was wondering if there is an easier/better/cleaner way to accomplish what I try? Confused | :confused:
Stephan
AnswerRe: Updating/changing Items in a ListBox with a TextBox Pin
bit_cmdr31-Jul-07 11:00
bit_cmdr31-Jul-07 11:00 
GeneralRe: Updating/changing Items in a ListBox with a TextBox Pin
stephan.smolek31-Jul-07 20:44
stephan.smolek31-Jul-07 20:44 
QuestionAverage image brightness Pin
newb2vb31-Jul-07 9:41
newb2vb31-Jul-07 9:41 
AnswerRe: Average image brightness Pin
Christian Graus31-Jul-07 11:39
protectorChristian Graus31-Jul-07 11:39 
GeneralRe: Average image brightness Pin
newb2vb31-Jul-07 12:15
newb2vb31-Jul-07 12:15 
GeneralRe: Average image brightness Pin
Christian Graus31-Jul-07 17:32
protectorChristian Graus31-Jul-07 17:32 
GeneralRe: Average image brightness Pin
newb2vb31-Jul-07 14:19
newb2vb31-Jul-07 14:19 
GeneralRe: Average image brightness Pin
Christian Graus31-Jul-07 17:33
protectorChristian Graus31-Jul-07 17:33 
AnswerRe: Average image brightness Pin
Luc Pattyn31-Jul-07 13:53
sitebuilderLuc Pattyn31-Jul-07 13:53 
QuestionC# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 7:11
professionalJustincc31-Jul-07 7:11 
AnswerRe: C# Multithreading, GUI hangs while loading Pin
Luc Pattyn31-Jul-07 7:22
sitebuilderLuc Pattyn31-Jul-07 7:22 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 7:29
professionalJustincc31-Jul-07 7:29 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 7:38
PhilDanger31-Jul-07 7:38 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:05
professionalJustincc31-Jul-07 10:05 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 10:21
PhilDanger31-Jul-07 10:21 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:40
professionalJustincc31-Jul-07 10:40 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:57
professionalJustincc31-Jul-07 10:57 

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.