Click here to Skip to main content
15,888,148 members
Home / Discussions / C#
   

C#

 
AnswerRe: how can i?? Pin
Eric Gunnerson (msft)2-Dec-02 11:55
Eric Gunnerson (msft)2-Dec-02 11:55 
GeneralRe: how can i?? Pin
Vlad Beu2-Dec-02 12:19
Vlad Beu2-Dec-02 12:19 
QuestionHow can i read a File over the network Pin
Vlad Beu2-Dec-02 2:31
Vlad Beu2-Dec-02 2:31 
GeneralAdd Reference Pin
grv5752-Dec-02 1:51
grv5752-Dec-02 1:51 
GeneralRe: Add Reference Pin
Not Active2-Dec-02 2:50
mentorNot Active2-Dec-02 2:50 
GeneralRe: Add Reference Pin
Kannan Kalyanaraman2-Dec-02 2:58
Kannan Kalyanaraman2-Dec-02 2:58 
GeneralRe: Add Reference Pin
grv5752-Dec-02 14:01
grv5752-Dec-02 14:01 
GeneralPersisting Property of userdefined Collection type. Pin
zorifila2-Dec-02 0:51
zorifila2-Dec-02 0:51 
Hi,


I have exposed a property in a UserControl.
The Property is of Collection type. ( Collection of my Userdefined type).
When I use this Control in a Form, the Forms Designer allows me to Edit the
property (MyValues) using the Default Collection Editor UI.
But the Changes made to the Collection are not persisted in the Form code
by the Forms Designer.

//------------------------------------
class MyControl : UserControl
{

MyTypeCollection m_values = new MyTypeCollection(); 

public MyTypeCollection MyValues
{
   get
   {
      return m_values ;
   }
   set
   {
      m_values  = value;
   }
}

}

//------------------------------------

class MyTypeCollection : CollectionBase
{
Add(){...}
Remove(){...}
}

//------------------------------------

class MyType
{
int i;
bool b;

public int XXX
{
   get
   {
      return i;
   }
   set
   {
      i= value;
   }
}

public bool YYY
{
   get
   {
      return b;
   }
   set
   {
      b= value;
   }
}

}


How can I make the Forms Designer generate code for the Collection Modified at Design time.
Please someone Help me...



Zor
GeneralRe: Persisting Property of userdefined Collection type. Pin
xicoloko2-Dec-02 4:26
xicoloko2-Dec-02 4:26 
GeneralImage into MS-Access Database Pin
shokisingh1-Dec-02 23:18
shokisingh1-Dec-02 23:18 
GeneralRe: Image into MS-Access Database Pin
Mazdak2-Dec-02 0:40
Mazdak2-Dec-02 0:40 
GeneralCreating a new process Pin
suresh_sathya1-Dec-02 20:55
suresh_sathya1-Dec-02 20:55 
GeneralRe: Creating a new process Pin
James T. Johnson1-Dec-02 21:17
James T. Johnson1-Dec-02 21:17 
QuestionAnyone get CreateControl() to work? Pin
Jeff J1-Dec-02 18:19
Jeff J1-Dec-02 18:19 
GeneralImage edit Pin
Smitha Nishant30-Nov-02 23:54
protectorSmitha Nishant30-Nov-02 23:54 
GeneralRe: Image edit Pin
Christian Graus1-Dec-02 16:22
protectorChristian Graus1-Dec-02 16:22 
GeneralRe: Image edit Pin
Smitha Nishant2-Dec-02 18:01
protectorSmitha Nishant2-Dec-02 18:01 
Questionsscanf equivalent in C#? Pin
roybrew30-Nov-02 16:18
roybrew30-Nov-02 16:18 
AnswerRe: sscanf equivalent in C#? Pin
David Stone30-Nov-02 18:22
sitebuilderDavid Stone30-Nov-02 18:22 
AnswerRe: sscanf equivalent in C#? Pin
Nick Parker30-Nov-02 18:37
protectorNick Parker30-Nov-02 18:37 
GeneralRe: sscanf equivalent in C#? Pin
David Stone30-Nov-02 19:13
sitebuilderDavid Stone30-Nov-02 19:13 
GeneralRe: sscanf equivalent in C#? Pin
roybrew1-Dec-02 5:24
roybrew1-Dec-02 5:24 

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.