Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
Reply
Message 1 of 2
yuh0317
314 Views, 1 Reply

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

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

1 REPLY 1
Message 2 of 2
martin.walter
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums