PC Review


Reply
Thread Tools Rate Thread

Custom UITypeEditor problem

 
 
Michelle
Guest
Posts: n/a
 
      6th Aug 2003
My scenario is very similar to Shawn Burke article "Make Your Components
Really RAD..."
(http://msdn.microsoft.com/library/de...-us/dndotnet/h
tml/vsnetpropbrow.asp)
I got everything working fine until I decided to not use anymore an extra
PropertyTab to hold a property using a custom UITypeEditor.
Nothing happens, the dropdown editor doesnt show anymore.
It seems like I don't know how to recreate the "connection" again.
What am I missing?

Here's my scenario:

class Entidade{
[Editor(typeof(AnguloPlanoUIEditor),
typeof(System.Drawing.Design.UITypeEditor))]
public double AnguloPlano {
get {}
set {}
}
}

//*************

public class AnguloInclUIEditor : System.Drawing.Design.UITypeEditor {

Modulo m_target;
AnguloInclEditorCtrl m_ui;

public AnguloInclUIEditor(Modulo target) {
m_target = target;
}

public override object EditValue(ITypeDescriptorContext context,
IServiceProvider sp, object value) {
...
return m_ui.Angulo.Degradianos;
}
}

//**********************
public class AnguloPlanoEditorCtrl : System.Windows.Forms.UserControl {
private Modulo m_target;
.....
}


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PropertyGrid, Custom UITypeEditor Romain TAILLANDIER Microsoft Dot NET Framework 1 10th Nov 2006 01:09 PM
Custom UITypeEditor focus problem http://www.bit-kit.com Microsoft C# .NET 0 4th Jul 2006 05:46 PM
Custom UITypeEditor focus problem pedery@ifi.uio.no Microsoft C# .NET 0 3rd Jul 2006 06:35 PM
Custom UITypeEditor Ahmed Hashish Microsoft VB .NET 2 24th Jul 2005 08:08 AM
Custom UITypeEditor for Color won't work... Iulian Ionescu Microsoft Dot NET Framework Forms 2 25th Oct 2003 03:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 AM.