Vault Customization

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

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

127 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 (111 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community