Vault Customization

Vault Customization

Reply
Active Contributor
yuh0317
Posts: 47
Registered: ‎12-03-2009
Message 1 of 2 (134 Views)

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

134 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

New Member
martin.w
Posts: 1
Registered: ‎01-25-2010
Message 2 of 2 (118 Views)

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

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.