problem developing complex UITypeEditors...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Johnson

    #1

    problem developing complex UITypeEditors...

    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.


  • Bob Powell [MVP]

    #2
    Re: problem developing complex UITypeEditors.. .

    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


    Answer those GDI+ questions with the GDI+ FAQ


    Blog http://bobpowelldotnet.blogspot.com

    "Tim Johnson" <timothyp@cae.c a> wrote in message
    news:bnm5hm$sju $1@dns3.cae.ca. ..[color=blue]
    > 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[/color]
    context[color=blue]
    > 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[/color]
    i[color=blue]
    > cannot get to any of my special designer services which I added to the
    > IDesignerHost of the form.
    >
    > Am i missing something?
    >
    > tia,
    > tim.
    >
    >[/color]


    Comment

    Working...