Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: accessing data from one form in another form Pin
DKalepu28-Jun-07 0:21
DKalepu28-Jun-07 0:21 
GeneralRe: accessing data from one form in another form Pin
Manas Bhardwaj28-Jun-07 0:26
professionalManas Bhardwaj28-Jun-07 0:26 
AnswerRe: accessing data from one form in another form Pin
Chintan.Desai28-Jun-07 0:36
Chintan.Desai28-Jun-07 0:36 
GeneralRe: accessing data from one form in another form Pin
DKalepu28-Jun-07 1:20
DKalepu28-Jun-07 1:20 
GeneralRe: accessing data from one form in another form Pin
Luc Pattyn28-Jun-07 1:40
sitebuilderLuc Pattyn28-Jun-07 1:40 
QuestionMasked TextBox .Net 2.0 Pin
KrunalC27-Jun-07 23:30
KrunalC27-Jun-07 23:30 
AnswerRe: Masked TextBox .Net 2.0 Pin
Dave Sexton28-Jun-07 0:41
Dave Sexton28-Jun-07 0:41 
GeneralRe: Masked TextBox .Net 2.0 Pin
KrunalC28-Jun-07 2:06
KrunalC28-Jun-07 2:06 
GeneralRe: Masked TextBox .Net 2.0 Pin
Dave Sexton28-Jun-07 2:14
Dave Sexton28-Jun-07 2:14 
GeneralRe: Masked TextBox .Net 2.0 Pin
KrunalC28-Jun-07 2:34
KrunalC28-Jun-07 2:34 

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.