How to simplify the code for settings values passed between a main and child forms
Tag : chash , By : Stephen Judge
Date : March 29 2020, 07:55 AM
around this issue Simply have the form expose a property of type Settings with a getter and a setter. That makes the snippet you posted simple without any changes needed when you add members to Settings. The effort now moves to the form implementation. PropertyGrid is a generic object editor, whether it is usable enough in your case is hard to guess.
|
How to close main form without closing child forms?
Tag : .net , By : Alpinfish
Date : March 29 2020, 07:55 AM
hope this fix your issue Your project settings are probably set to terminate the application when the startup form closes. Changing the option to "last form closes" should fix this. "Project" menu -> 'YourApp' Properties... -> Application Tab
|
C# - How Do I Close Main Form Together With Child Forms (while child windows must close ONLY when main form is closing)
Tag : chash , By : user113409
Date : March 29 2020, 07:55 AM
I wish this helpful for you I have a main window and a few child windows. Child windows contain some data so I don't want them to be closed. So I hide them while in FormClosing I set e.Cancel = true; , Found the solution myself: // ...
if (sender == this) // main
{
exitApp = true;
FormClosing -= onFormClosing;
Close();
}
// ...
|
Multiple forms, child form is stuck behind main form
Tag : chash , By : user98832
Date : March 29 2020, 07:55 AM
Hope this helps As the title suggests, I have two forms, when I run the app the main form is not minimizable or moveable. The second form is stuck behind the main, even if I maximize it. The main form will still be in front. Am I guessing there is a setting I need to change? Below is the code to create the second form. , Try passing in the current form Reports rep = new Reports();
rep.Show(this);
|
oracle forms. child form doesn't see main form posted changes
Date : September 21 2020, 03:00 AM
Does that help I have a trouble with oracle forms. The scenario is: , Forms help says the following for OPEN_FORM's session_mode:
|