Re: Why isn't there "Item" property for combobox or listbox in C#?



Onur,

Simple because item is a default property

Cor

"kimiraikkonen" <kimiraikkonen85@xxxxxxxxx> schreef in bericht news:fce369ce-4fbd-4536-bb78-53ab7afbf998@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Just noticed that you're allowed to use combobox1.items.item property
in VB.NET but NOT in C#...
Intellisense doesn't show "item" property and build is failed.

Is there a specific reason for that or is it a mistake?
(Using VC# 2005 express + .NET 2.0)

Thanks,

Onur Güzel

.



Relevant Pages


Loading