Windows Form Designer
-
Does anyone know how to make my control such that when it is displayed in the windows form designer, the grid does not appear over it??? [edit] oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly :mad: [/edit]
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors." -
Does anyone know how to make my control such that when it is displayed in the windows form designer, the grid does not appear over it??? [edit] oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly :mad: [/edit]
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors."Nnamdi Onyeyiri wrote: oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly You just need to implemenet an indexer :) We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy :) Cheers PS: Where have u been? Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.
-
Nnamdi Onyeyiri wrote: oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly You just need to implemenet an indexer :) We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy :) Cheers PS: Where have u been? Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.
public class EBGroupCollection : CollectionBase
public EBGroup this[int index]
{
get
{
return (EBGroup)this.List[index];
}set { this.List\[index\] = value; }
}
public EBGroupCollection()
{
}public void Add(EBGroup value)
{
this.List.Add(value);
}}
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors." -
public class EBGroupCollection : CollectionBase
public EBGroup this[int index]
{
get
{
return (EBGroup)this.List[index];
}set { this.List\[index\] = value; }
}
public EBGroupCollection()
{
}public void Add(EBGroup value)
{
this.List.Add(value);
}}
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors."I just don't get those strange indexers. Nnamdi Onyeyiri wrote: EBGroup this[int index] It looks like the good old C++'s
operator[]
Ñ There is only one MP Ð
-
I just don't get those strange indexers. Nnamdi Onyeyiri wrote: EBGroup this[int index] It looks like the good old C++'s
operator[]
Ñ There is only one MP Ð
-
Yes , the quote button is gone, they are the same :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.
that code is what i am using, and that code, is the code that isnt working ;P
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors." -
that code is what i am using, and that code, is the code that isnt working ;P
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors." -
Nnamdi Onyeyiri wrote: oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly You just need to implemenet an indexer :) We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy :) Cheers PS: Where have u been? Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.
leppie wrote: We had plenty disscussions about that during the last week. ;)
-
Oops, :) make sure the type you are adding has a default constructor, as allways :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.
yer, it/they does/do. EBGroup is a class, with another collection, i dentical to the other one, except for EBItem [also a class]. can i not use classes?
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors." -
Nnamdi Onyeyiri wrote: oh, and im not gonna ask if there is something specific i have to do to my collectionbase derived class, to make the windows forms designer use the collection properly You just need to implemenet an indexer :) We had plenty disscussions about that during the last week. Have a look at the CollectionEditor class for more details, I'm still trying to figure out how to add multiple types, it sure did look easy :) Cheers PS: Where have u been? Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.
leppie wrote: PS: Where have u been? what do you mean?????? [just noticed this bit]
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors." -
leppie wrote: PS: Where have u been? what do you mean?????? [just noticed this bit]
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors." -
yer, it/they does/do. EBGroup is a class, with another collection, i dentical to the other one, except for EBItem [also a class]. can i not use classes?
:suss: Email: theeclypse@hotmail.com URL: http://www.onyeyiri.co.uk
:suss:"All programmers are playwrights and all computers are lousy actors."Nnamdi Onyeyiri wrote: EBGroup is a class, with another collection, i dentical to the other one, except for EBItem [also a class]. can i not use classes? Yes you can! I would sugest you make a few small skeleton classes to see where the problem lies...start at the other container iow that 1st collection you mentioned. Good luck :) Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.