• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Vault Customization

    Reply
    Active Contributor
    Posts: 47
    Registered: ‎12-03-2009

    Is it possible to set Vault Explorer main view as my window owner ?

    111 Views, 1 Replies
    09-20-2012 02:43 AM

    I want to get Vault explorer handle as  my window owner in n Vault Pro 2013, is it possible? Please see the following codes.

     

    TestWindow win = new TestWindow();
    //win.Owner = null;????????

    win.ShowDialog();

     

    YU

    Please use plain text.
    New Member
    Posts: 1
    Registered: ‎01-25-2010

    Re: Is it possible to set Vault Explorer main view as my window owner ?

    09-26-2012 03:36 AM in reply to: yuh0317

    Well, maybe there is something to it, that i don't see right now... I'm assuming that you're running inside VaultExplorer right now... Why don't you pass the hwnd to ShowDialog(...)?

    If you don't have the handle, you can get it via your current Process:

     

    TestForm test = new TestForm();
    
    test.ShowDialog(
        System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle
    );

     

    Regards,

    Martin

    Please use plain text.