problem developing complex UITypeEditors...

  • Thread starter Thread starter Tim Johnson
  • Start date Start date
T

Tim Johnson

Hi all,

I'm a little bit stuck, so wondering if anyone has encountered this issue
before.

I am developing a toolkit which is fully integrated in Visual Studio .NET,
and so there are lots of UITypeEditors which display modal forms, and
TypeConverters and so on.

The problem is that when I have a modal Type Editor form which has a
Property Grid control on it. This property grid does not seem to act the
same way as the main property grid in VS. Ie, it does not have any context
menu for "reset", and when i attempt to edit properties using this
second-level property grid, the UITypeEditor class does not get the same
context as the main Property grid. This is a bit of a problem for me, as i
cannot get to any of my special designer services which I added to the
IDesignerHost of the form.

Am i missing something?

tia,
tim.
 
The way that type editor's work in visual studio is not straightforward .
Generally the simpler they are, the better. I don't know exactly how the
internal system works but for example, you cannot pop up a color dialog
from within a type editor because it upsets the internal message loop
somehow. The problems you are encountering may have something to do with
this.

I would suggest that you keep your type editors as simple as possible.

--
Bob Powell [MVP]
C#, System.Drawing

The October edition of Well Formed is now available.
Find out how to use DirectX in a Windows Forms control
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Blog http://bobpowelldotnet.blogspot.com
 
Back
Top