Click here to Skip to main content
15,905,563 members
Home / Discussions / C#
   

C#

 
QuestionPausing voice on the click of a button Pin
Annie Fernando19-Mar-06 2:03
Annie Fernando19-Mar-06 2:03 
AnswerRe: Pausing voice on the click of a button Pin
CWIZO19-Mar-06 5:39
CWIZO19-Mar-06 5:39 
QuestionRe: Pausing voice on the click of a button Pin
Annie Fernando19-Mar-06 7:15
Annie Fernando19-Mar-06 7:15 
AnswerRe: Pausing voice on the click of a button Pin
Annie Fernando19-Mar-06 9:17
Annie Fernando19-Mar-06 9:17 
QuestionHow to refresh a DataView ? Pin
chloh19-Mar-06 1:33
chloh19-Mar-06 1:33 
QuestionPropertyGrid: Problem viewing arrays Pin
mitul198319-Mar-06 0:22
mitul198319-Mar-06 0:22 
AnswerRe: PropertyGrid: Problem viewing arrays Pin
mitul198319-Mar-06 2:10
mitul198319-Mar-06 2:10 
QuestionFloating panes Pin
deepscyberpulse18-Mar-06 21:48
deepscyberpulse18-Mar-06 21:48 
AnswerRe: Floating panes Pin
Shiby19-Mar-06 1:57
Shiby19-Mar-06 1:57 
QuestionPath of current project. Pin
deepscyberpulse18-Mar-06 21:45
deepscyberpulse18-Mar-06 21:45 
AnswerRe: Path of current project. Pin
cbhkenshin18-Mar-06 22:17
cbhkenshin18-Mar-06 22:17 
AnswerRe: Path of current project. Pin
Ed.Poore18-Mar-06 22:32
Ed.Poore18-Mar-06 22:32 
QuestionCapture events of running instance of IE Pin
Mario Williams18-Mar-06 20:06
Mario Williams18-Mar-06 20:06 
QuestionHow to replace a control in designer ? Pin
chloh18-Mar-06 19:21
chloh18-Mar-06 19:21 
AnswerRe: How to replace a control in designer ? Pin
leppie18-Mar-06 19:30
leppie18-Mar-06 19:30 
GeneralRe: How to replace a control in designer ? Pin
chloh18-Mar-06 20:26
chloh18-Mar-06 20:26 
QuestionHow to write a flat menu and toolbar like VS2005? Pin
Newlad18-Mar-06 17:47
Newlad18-Mar-06 17:47 
AnswerRe: How to write a flat menu and toolbar like VS2005? Pin
Ravi Bhavnani18-Mar-06 17:57
professionalRavi Bhavnani18-Mar-06 17:57 
QuestionGUI Similare Musicmatch, itune or Windows Media Manager. Pin
temp555618-Mar-06 17:27
temp555618-Mar-06 17:27 
AnswerRe: GUI Similare Musicmatch, itune or Windows Media Manager. Pin
Ravi Bhavnani18-Mar-06 18:01
professionalRavi Bhavnani18-Mar-06 18:01 
AnswerAlso... Pin
Ravi Bhavnani18-Mar-06 18:07
professionalRavi Bhavnani18-Mar-06 18:07 
QuestionSimple question(i hope) about ComboBox Pin
e-laj18-Mar-06 11:24
e-laj18-Mar-06 11:24 
i have the folowing class:

class MyClass<br />
{<br />
	public MyClass(string str)<br />
	{<br />
		Str = str;<br />
	}<br />
<br />
	public string Str;<br />
<br />
	public override string ToString()<br />
	{<br />
		return Str;<br />
	}<br />
}


now lets add some items to a ComboBox:

comboBox1.Items.Add(new MyClass("aaa"));<br />
comboBox1.Items.Add(new MyClass("bbb"));<br />
comboBox1.Items.Add(new MyClass("ccc"));


and now....
suppose that i want to change the first item Str member to "ddd":
the following line doesn't work:

((MyClass)comboBox1.Items[0]).Str = "ddd";

But the following will work:

comboBox1.Items[0] = new MyClass("ddd");

It seems that a copy of the item is returned from the object collection in the ComboBox.
Does anyone know how it is possible to change the item directly without replacing it?

Thanks in advanced, Ilan
AnswerRe: Simple question(i hope) about ComboBox Pin
Ed.Poore18-Mar-06 12:49
Ed.Poore18-Mar-06 12:49 
GeneralRe: Simple question(i hope) about ComboBox Pin
e-laj18-Mar-06 13:25
e-laj18-Mar-06 13:25 
AnswerRe: Simple question(i hope) about ComboBox Pin
Guffa18-Mar-06 14:19
Guffa18-Mar-06 14:19 

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.