How do you bring a userform window to the foreground?

Hello 

I'm looking for a property or command to put my userform window in front of solidworks.

Thank you for your help.

Hello
is it VBA or VB.NET?

There are many topics on the subject on the official SolidWorks forum:

https://www.google.fr/#q=solidworks+userform+on+top+site:forum.solidworks.com

 

Hello

In VBA 

UserForm1.Show (0)

 

 

Sylvain, this is the code I used but it does not put itself in the foreground! As for your .PL links I can't find an easy way to bring it to the forefront..

You can try this macro:

http://wlmservices.net/downloads/userformontop.zip

 

Hello Anthony!

I'm Amen from CADHero. I offer services in SolidWorks API. We can solve your question with us and much more. 

Kind regards
Amen
jliliamen@gmail.com
amen@cadhero.com