Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic custom collection (Read 3407 times)
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
custom collection
Sep 8th, 2008 at 4:46am
Print Post  
hi, In custom collection property grid. how to raise the ok button and cancel buttons.
and one more thing is in custom collection property grid if we set the values in the properties after that if we select the cancel button.. then once again open the custom collection,previously setted values only showing in properties.. would u plz tell me how to solve these problems..
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: custom collection
Reply #1 - Sep 8th, 2008 at 8:12am
Print Post  
Are you trying to create a type-editor for your collection class?
  
Back to top
 
IP Logged
 
balajigcs
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 32
Joined: Aug 18th, 2008
Re: custom collection
Reply #2 - Sep 9th, 2008 at 4:36am
Print Post  
yes
  

Thanks & Regards,&&&&Balaji
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: custom collection
Reply #3 - Sep 9th, 2008 at 7:09am
Print Post  
So you are overriding the UITypeEditor.EditValue method and showing a modal form from there? You do not need to handle the OK and Cancel button click events, you should only set their DialogResult property. The ShowDialog method returns the appropriate DialogResult value. If ShowDialog returns DialogResult.OK, you should return the edited collection. Otherwise, return the original collection.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint