Disable close cross - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Disable close cross

Last post 01-25-2008 12:52 PM by hockeyjac. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-22-2006 07:56 AM

    Disable close cross

    Hi,

    I have seen that on winform you can disable "the close cross" (the red cross for close the form (up right)) and I asking me if this possible to make in Infopath?

    the code for Winform:
    private const int CS_NOCLOSE = 0x0200;

    protected override CreateParams CreateParams
    {
    get
    {
    CreateParams cp = base.CreateParams;
    cp.ClassStyle |= CS_NOCLOSE;
    return cp;
    }
    }


    Thanks for your feedback

    ++

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 11-24-2006 10:09 AM In reply to

    As per our knowledges it is not possible, please let us know if you find any solution. Thanks!
  • 11-24-2006 11:43 AM In reply to

    Hi Thierry,
    Frank Dauche, who used to actively post in this forum, found a way to do this using the technique you describe. It was a little tricky to get the correct window handle, but so long as you have some managed code, you can access the properties for your window. I asked him to post his solution, but he got hired at Microsoft and has been busy ever since. I'll ping him again and see what he is doing. Bottom line: it's doable.
    Cheers!
    Patrick Halstead
    Project Manager at Qdabra
  • 01-25-2008 12:45 PM In reply to

    Did this ever get posted to the site?

     

    Thanks.

  • 01-25-2008 12:49 PM In reply to

    Hi HockeyJac and welcome,

    Unfortunately, I never got a reply from Frank and he is now a program manager at Microsoft. My recollection was that he had to write code to get the window handle for InfoPath and then using Windows GDI functions disable the cross. It's not something that we have time to investigate now for the forum, and I'm sorry we can't provide free help here. I'm guessing it's a good 4 hours of developer time to investigate and write the code. If Frank had sent the code, it would have been maybe 30 minutes to integrate with existing code.

    Patrick Halstead
    Project Manager at Qdabra
  • 01-25-2008 12:52 PM In reply to

    Thanks.

    If we figure something out, I will post it here.

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.