Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dialog / Form visiblity

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
orosztamas
455 Views, 3 Replies

Dialog / Form visiblity

Dear Everyone,

I have a modeless form set to "TopMost". One of the buttons on the modeless form is calling the "ColorSelectionDialog".

 

My goal is to display the ColorSelectionDialog over my Windows Form. The problem is the following:

 

When my modeless form is set to "TopMost", then the ColorSelectionDialog appears behind it. On the other hand, when the modeless form is not set to "TopMost", then the Revit window, and the ColorSelectionDialog are both in front of my form, so it's basicly not visible.

 

It is working fine as ModalDialog, but this breaks some other functionality, since I need to interact with the Revit Database, while the form is open.

 

Is there a solution for  this?

3 REPLIES 3
Message 2 of 4
jeremytammik
in reply to: orosztamas

This looks very similar to the question I answered this very morning, and the answer is probably identical:

 

https://forums.autodesk.com/t5/revit-api-forum/modeless-dialog-stays-on-top/td-p/9042359

 

Please always search for existing answers before asking a new question.

 

Thank you!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4
orosztamas
in reply to: jeremytammik

Yes, you are right! Sorry! And thank you for the JtWindowHandle class!

Message 4 of 4
jeremytammik
in reply to: orosztamas

No problem. Thank you for your appreciation. Glad it helps solve your issue!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community