Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problems in web services Pin
Zahid Rsons29-Jun-07 0:34
Zahid Rsons29-Jun-07 0:34 
Questionhow to post javascript array to the server in c# Pin
srinivassam28-Jun-07 2:29
srinivassam28-Jun-07 2:29 
QuestionGetting Absolute path of windows service Pin
EvilInide28-Jun-07 1:46
EvilInide28-Jun-07 1:46 
AnswerRe: Getting Absolute path of windows service Pin
Luc Pattyn28-Jun-07 1:49
sitebuilderLuc Pattyn28-Jun-07 1:49 
GeneralRe: Getting Absolute path of windows service Pin
EvilInide28-Jun-07 2:00
EvilInide28-Jun-07 2:00 
GeneralRe: Getting Absolute path of windows service Pin
Luc Pattyn28-Jun-07 2:13
sitebuilderLuc Pattyn28-Jun-07 2:13 
Questionthumb.db file is not updating itself Pin
Shoaib Hussain28-Jun-07 1:38
Shoaib Hussain28-Jun-07 1:38 
QuestionFile Locking Pin
scotlandc28-Jun-07 1:03
scotlandc28-Jun-07 1:03 
AnswerRe: File Locking Pin
Le centriste28-Jun-07 3:03
Le centriste28-Jun-07 3:03 
GeneralRe: File Locking Pin
scotlandc28-Jun-07 3:21
scotlandc28-Jun-07 3:21 
GeneralRe: File Locking Pin
Amar Chaudhary28-Jun-07 3:55
Amar Chaudhary28-Jun-07 3:55 
Questionmembership API Pin
sangramkp28-Jun-07 0:53
sangramkp28-Jun-07 0:53 
AnswerRe: membership API Pin
Christian Graus28-Jun-07 1:46
protectorChristian Graus28-Jun-07 1:46 
QuestionHowto? ClassName.Items["item_name"].Property_name Pin
hkai28-Jun-07 0:47
hkai28-Jun-07 0:47 
AnswerRe: Howto? ClassName.Items["item_name"].Property_name Pin
giddy_guitarist28-Jun-07 1:24
giddy_guitarist28-Jun-07 1:24 
GeneralRe: Howto? ClassName.Items["item_name"].Property_name Pin
hkai28-Jun-07 1:36
hkai28-Jun-07 1:36 
GeneralRe: Howto? ClassName.Items["item_name"].Property_name Pin
Luc Pattyn28-Jun-07 2:07
sitebuilderLuc Pattyn28-Jun-07 2:07 
GeneralRe: Howto? ClassName.Items["item_name"].Property_name Pin
giddy_guitarist29-Jun-07 3:30
giddy_guitarist29-Jun-07 3:30 
hi,

I'm sorry , i answered very hastily. That was really silly , you're right. You cant do anything like what i mentioned earlier.

I do know , that .NET classes that have an items collection return a strongly typed object collection.In other words , what Items returns IS A LIST(Like the ListBox.Items , ComboBox.Items etc).

Usually they are used only because you need for something to happen when the collection changes.For example , when one adds/removes objects from the ListBox.Items the listbox updates.

If you still want to do what you want , you could do this:

class MenuItemCollection : IList
{

}
//since you're using .NET 1.1 i dont think you can make a strongly typed collection , so you could write you're own collection (Without IList) that takes MenuItems (IList takes objects)

Then :
class Menu
{
MenuItemCollection _items; // this should be initialized somewhere.
public MenuItemCollection
{
get{ return _items;}
}
}

You can check out the .NET classes with the object browser in VS or with reflector to get a better idea.

Hope i helped.

Gideon
AnswerRe: Howto? ClassName.Items["item_name"].Property_name Pin
Le centriste28-Jun-07 3:08
Le centriste28-Jun-07 3:08 
QuestionSystem Information Pin
M. J. Jaya Chitra28-Jun-07 0:09
M. J. Jaya Chitra28-Jun-07 0:09 
AnswerRe: System Information Pin
Manas Bhardwaj28-Jun-07 0:19
professionalManas Bhardwaj28-Jun-07 0:19 
GeneralRe: System Information Pin
M. J. Jaya Chitra28-Jun-07 0:27
M. J. Jaya Chitra28-Jun-07 0:27 
AnswerRe: System Information Pin
Luc Pattyn28-Jun-07 0:24
sitebuilderLuc Pattyn28-Jun-07 0:24 
Questionaccessing data from one form in another form [modified] Pin
DKalepu27-Jun-07 23:44
DKalepu27-Jun-07 23:44 
AnswerRe: accessing data from one form in another form Pin
Christian Graus28-Jun-07 0:16
protectorChristian Graus28-Jun-07 0:16 

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.