Vault Customization

Vault Customization

Reply
Active Contributor
47 Posts
0 Kudos
Registered: ‎12-03-2009
Post 1 of 2

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

141 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
1 Posts
0 Kudos
Registered: ‎01-25-2010
Post 2 of 2

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!