![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
How to modify permanently size and position of CForm dialogs ?Hi!
My project consist of a CForm main window and other CForm dialog I've inserted. Their size and position are not what I need. I can obviously change the sizes and positions on the screen but I want the dialogs to keep their respective size and position each time I run the project. What code should I modify or implement ? I 'll appreciate very much detailed replies. Thanks a lot. Best regards. Frandy |
|
#2
|
||||
|
||||
|
First of all, let me bring to your attention that although your application may be written in Visual C, it makes use of the .NET Frameworks' WinForms and has nothing to do with MFC. I will move this thread to the .NET Forum (where it should have been from the start) as soon as you confirm reading my post.
A solution to your problem is to write the code in the header, in the InitializeComponent section - some kind of an "OnInitDialog" if you will... Form1.h CPP / C++ / C Code:
I hope this is detailed enough. Kind regards, Luci __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#3
|
|||
|
|||
|
Thanks Luci for your help but I don't see what I should do with this code. You know, my level is too low for now.
As I don't know anything about .NET Frameworks' Winforms, I'm not surprised that my application could make use of Winforms. Anyway, disregard the question. Thanks again Luci, also for your patience. Kind regards. Frandy |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The