Click to See Complete Forum and Search --> : using c# form in a Visual c++ application


barbiomalefico
April 11th, 2003, 09:47 AM
Hi everybody,
this is my first post, so i hope this is the right place to post my question.
I have a big problem:
I have build a Visual c# library witch holds a form dialog. I need to use that dialog in a MDI Visual C++ application.
I used the ShowDialog function to Show my dialog and it works, but the true problem is that I should use this dialog docked under my menu bar.
How can I dock a C# dialog in a C++ application?

Thanks a lot

barbiomalefico
April 14th, 2003, 04:54 AM
No one can answer my question or I have post my question in the wrong forum?

Please Help!

barbiomalefico
May 20th, 2003, 10:53 AM
Partial Solution:
Do as follow
1. Get the Client Rect of the Mainframe;
2. converte the Client coords in ScreenCoords;
3. Put the top left point and the width on the Form Class
4. intercept the Load Event and change the member variables Left, Top and Width

I hope in the future to find a better ways!

byes to all